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 create statement (showing only a few columns from
 the table for brevity):
 
 CREATE TABLE `customers` (
   `id` int(10) unsigned NOT NULL auto_increment,
   `fname` varchar(20) NOT NULL default '',
   `lname` varchar(20) NOT NULL default '',
   `is_active` tinyint(4) NOT NULL default '0',
   PRIMARY KEY  (`fname`,`lname`,`email`,`id`),
   UNIQUE KEY `email` (`email`)
 ) TYPE=MyISAM;
 
 
 anyone know what's going on??
 [/snip]
 
 The guys on the MySQL list do. Have you read this--
 http://dev.mysql.com/doc/mysql/en/example-AUTO_INCREMENT.html

more like 'db 101' and 'Intro to Mailing lists', would be a more
appropriate thing to do.



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 trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 returned stream of data to service the original PHP
request.  Clear?

I quickly found the PHP HTTP library (
http://www.php.net/manual/en/ref.http.php ), but my quick perusal makes me
think this is only useful for controlling the HTTP response sent back to the
browser making the original PHP request.

Can someone help me?

FYI:  I'm a newbie.  Please forgive me if this is an old-hat question.

Matt

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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 returned stream of data to service the original PHP
 request.  Clear?

 I quickly found the PHP HTTP library (
 http://www.php.net/manual/en/ref.http.php ), but my quick perusal makes me
 think this is only useful for controlling the HTTP response sent back to
the
 browser making the original PHP request.

 Can someone help me?

 FYI:  I'm a newbie.  Please forgive me if this is an old-hat question.

 Matt

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 by all
accounts it works just fine under win32 as well.  The only thing that
I personally can't get working is the debugger, but haven't spent much
time on it as var_dump statements serve me just fine for now.

Dave

On Mon, 12 Jul 2004 14:39:36 -0400, Dan Joseph [EMAIL PROTECTED] wrote:
 Hi,
 
 I was wondering, is anyone running Eclipse 3.0 w/PHPEclipse 1.1.0?
 I'm having trouble getting it working.  I downloaded the July .ZIP file and
 unzipped it into the plugins directory.  Its not recognizing it.  Anyone
 have this working?
 
 -Dan Joseph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 works for that also.

It should work for any HTTP URL. But I'd recommend using fsockopen()
instead of fopen(). fsockopen() has a built-in timeout, and you need
this if you don't want to make your visitors wait indefinitely. The
timeout works two-fold: there's a timeout for opening the socket,
specified in the fsockopen() call; then there's a timeout control set
with socket_set_timeout().

You can do something along these lines:
* open socket with fsockopen()
* if opening worked and it didn't time out, use socket_set_timeout()
* do a while loop based on feof() and socket_get_status() (check for
  end-of-file and read timeout, respectively)
* while in the loop, read from the socket

A common pitfall: you will also get the HTTP response headers this
way. Just skip everything at the top of the file until you meet a
double newline (\n\n) for the first time. But you may want to check
those headers to see if the server responded with a 200 OK code.
The code is the first word on the first line of the response.

Here's a nifty trick from the PHP-GTK crowd: use socket_set_blocking
to set the stream to NON-blocking mode. Then all read calls to the
socket will return immediately, regardless if they read something
or not. In the long run, this will give the same results as with
blocking mode, but you may save up a second or two due to increased
responsiveness. Oh, and very IMPORTANT, do a small usleep() in every
loop if you use non-blocking, even usleep(1000) will suffice;
otherwise you risk killing the CPU on the server.

-- 
Romanian Web Developers - http://ROWD.ORG

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

-- 
-
 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 convention was to use entirely PHP and
simply
 encase HTML TAGs within that or use a mix and simply use PHP TAGs when
 required.



 -- 
 -
  Michael Mason
  Arras People
  www.arraspeople.co.uk
 -

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 header and I would like to be
able to generate the above output to this page as soon as people visit the
site.

Is there any way I can do this with PHP.
Or at least an someone point me in the right direction.

William L Kolln

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 convention was to use entirely PHP and
simply
 encase HTML TAGs within that or use a mix and simply use PHP TAGs when
 required.



 -- 
 -
  Michael Mason
  Arras People
  www.arraspeople.co.uk
 -

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 extension, haven't tested it.

Regards, Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 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 extension, haven't tested it.

 Regards, Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 would be cool, but not essential...
she can reply via work...

Anyone ever heard of such a thing, and event know if it's possible...?
I presume that the firewall at work simply blocks the address 
www.hotmail.com, rather than some deeper blocking...

Tris...

*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 parse custom html tags. I would like to then
replace those tags with php/html code. Here is an example of the html
file to be parsed. Notice the component, they are the custom tags I
wish to replace with code. I only need help in parsing the tags and
storing in a variable or array so I can work with the attributes. The
component tag will be the only tag I will need to work with.
html
head
titletest/title
/head
body
component name=menu layout=horizontal /
component name=titlebar /
/body
/html
This is what I was thinking, although if someone has better idea that is
fine. I was thinking of storing these in a multi-dimensional array. An
example might be $components[0][name][layout]. Is there code out there
already that does this?
Or you could simply use a regexp to extract those from the code, and 
then later on using the 'e' flag, replace them with PHP code.

- Tul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.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, visit: http://www.php.net/unsub.php



[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 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 would be cool, but not essential...
 she can reply via work...

 Anyone ever heard of such a thing, and event know if it's possible...?
 I presume that the firewall at work simply blocks the address
 www.hotmail.com, rather than some deeper blocking...

 Tris...

 *
 The information contained in this e-mail message is intended only for
 the personal and confidential use of the recipient(s) named above.
 If the reader of this message is not the intended recipient or an agent
 responsible for delivering it to the intended recipient, you are hereby
 notified that you have received this document in error and that any
 review, dissemination, distribution, or copying of this message is
 strictly prohibited. If you have received this communication in error,
 please notify us immediately by e-mail, and delete the original message.
 ***

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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) link? I assume you mean GET, rather than command
line.

 to produce a list of all items in the database.

 I also have a front page index.htm which has a header and I would like to
be
 able to generate the above output to this page as soon as people visit the
 site.

I'm don't know what you're asking...

If you want to include a page, try php.net/include
If you want to read the output of a cgi script, you'll need to readfile() or
file_get_contents() it after it's been processed by your webserver.

If this isn't touching on what you want to do, please ask your question
again.


 Is there any way I can do this with PHP.
 Or at least an someone point me in the right direction.

 William L Kolln

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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;
?
/body
/html

it doesn't seem to print... which leads me to believe that  is a reserved
char/word...

i tried to do a \p with no luck...

any idea as to what's going on, and can someone point me to a list of the
actual php reserved chars/words couldn't seem to track them down on the
php site/google...

thanks

bruce

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 print_r()





Dennis Gearon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 please CC me, as I am on digest.
 ---
 say I've got a class that stores the cookie/get/post vars.
 I want to retrieve say one of them.
 Say, that post vars  come back from browser as:

 POST[var1_arr][dim1][dim2]

 they are stored in

 object-post_vars[var1_arr][dim1][dim2];
 object-post_vars[singleton];

 I have the function

 class-get_post_var($index_arr){
return correct, processed post var;
 }


 How can I get the function to return an arbitrary depth into the post
 vars array?
 i.e. EITHER

 return $this-class_user_input_processing_function(
 $this-post_vars, $index_arr);

  Where $index_arr contains either:

 $index_arr = array(var1_arr,dim1_value, dim2_value);
 -or-
 $index_arr = array(singleton);

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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:
 
 include_once 'pureHTML.php';

readfile is in this case more appropriate imho

-- 
Tim Van Wassenhove http://home.mysth.be/~timvw

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 (only) use SMTP. Just configure your php.ini 
correctly and it should work.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Give me enough medals, and I'll win any war.
-- Napoleon
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 can get a list of emails, and
 access to read them... replying would be cool, but not essential...
 she can reply via work...


I want to be the first to thank you for making your misses's work network less 
safe. I'm sure they won't mind all the virus laden emails you're sneaking 
through the back door. I'm sure I don't need to mention how much work your 
misses gets done while she's reading personal emails.

James Hicks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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'], time()+86400)
  setcookie (cookie[tcolor], $_POST['tcolor'], time()+86400)
 
  ?


 you could try this:

 setcookie ('values', serialize($_POST), time()+86400);

 then when you want to retrieve it use

 $values = unserialize($_COOKIE['values']);

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 guess the
spreadsheet Excel Writer package), let Excel do the work and produce the
output information, in PHP? Or is there an easier way to use an Excel sheet
together with web pages?

Arnold

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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:
libcrypto.so.3 = /usr/local/lib/libcrypto.so.3 (0x284b8000)
libssl.so.3 = /usr/local/lib/libssl.so.3 (0x285ab000)
libcrypt.so.2 = /usr/lib/libcrypt.so.2 (0x285da000)
libmcal.so = /usr/local/lib/libmcal.so (0x285f3000)
libc-client4.so.8 = /usr/local/lib/libc-client4.so.8 (0x28603000)
libzzip.so.10 = /usr/local/lib/libzzip.so.10 (0x286b7000)
libexpat.so.5 = /usr/local/lib/libexpat.so.5 (0x286bd000)
libsnmp.so.4 = /usr/local/lib/libsnmp.so.4 (0x286da000)
libhistory.so.4 = /usr/lib/libhistory.so.4 (0x28734000)
libreadline.so.4 = /usr/lib/libreadline.so.4 (0x2873a000)
libncurses.so.5 = /usr/lib/libncurses.so.5 (0x2876)
libpspell.so.15 = /usr/local/lib/libpspell.so.15 (0x287a2000)
libmysqlclient.so.14 = /usr/local/lib/mysql/libmysqlclient.so.14
(0x287a4000)
libsybdb.so.4 = /usr/local/lib/libsybdb.so.4 (0x287d6000)
libming.so.3 = /usr/local/lib/libming.so.3 (0x28821000)
libm.so.2 = /usr/lib/libm.so.2 (0x28855000)
libmhash.so.2 = /usr/local/lib/libmhash.so.2 (0x28871000)
libmcve.so.3 = /usr/local/lib/libmcve.so.3 (0x2888a000)
libmcrypt.so.8 = /usr/local/lib/libmcrypt.so.8 (0x28897000)
libltdl.so.4 = /usr/local/lib/libltdl.so.4 (0x288ca000)
libpam.so.1 = /usr/lib/libpam.so.1 (0x288d2000)
libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x288dc000)
libgmp.so.3 = /usr/lib/libgmp.so.3 (0x289ca000)
libintl.so.5 = /usr/local/lib/libintl.so.5 (0x289e)
libt1.so.5 = /usr/local/lib/libt1.so.5 (0x289e9000)
libfreetype.so.9 = /usr/local/lib/libfreetype.so.9 (0x28a35000)
libpng.so.5 = /usr/local/lib/libpng.so.5 (0x28a87000)
libz.so.2 = /usr/lib/libz.so.2 (0x28aab000)
libjpeg.so.9 = /usr/local/lib/libjpeg.so.9 (0x28ab9000)
libdb41.so.1 = /usr/local/lib/libdb41.so.1 (0x28ad7000)
libgdbm.so.3 = /usr/local/lib/libgdbm.so.3 (0x28b77000)
libcurl.so.3 = /usr/local/lib/libcurl.so.3 (0x28b7d000)
libbz2.so.1 = /usr/lib/libbz2.so.1 (0x28ba9000)
libudmsearch.so.1 = /usr/local/lib/libudmsearch.so.1 (0x28bb9000)
libssl.so.3 = /usr/lib/libssl.so.3 (0x28bf)
libcrypto.so.3 = /usr/lib/libcrypto.so.3 (0x28c2)
libaspell.so.15 = /usr/local/lib/libaspell.so.15 (0x28d1f000)
libstdc++.so.3 = /usr/lib/libstdc++.so.3 (0x28dec000)
libmysqlclient.so.10 = not found (0x0)

Apache complains:
[EMAIL PROTECTED]:/usr/local/libexec/apache# apachectl configtest
Syntax error on line 42 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/libexec/apache/libphp4.so into server: Shared object
libmysqlclient.so.10 not found

Now, from the LDD, why would PHP link against libmysqlclient.so.14 (for
5.0-ALPHA of mysqlclient), AS WELL AS libmysqlclient.so.10 (which was an
older 3.x version).  so.10 doesn't even exist on my system anymore... And
yes, I tried symlinking, it is looking for references which doesn't exist in
so.14

Uhm, am I stupid, or is something broken??

--
me

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 the
 spreadsheet Excel Writer package), let Excel do the work and produce the
 output information, in PHP? Or is there an easier way to use an Excel sheet
 together with web pages?

You could try the com object.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 happens?

Cheers for the words of encouragement James...! ;-)





James E Hicks III [EMAIL PROTECTED] 
13/07/2004 13:18

To
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED]
Subject
Re: [PHP] Email, Hotmail and PHP?






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 can get a list of emails, and
 access to read them... replying would be cool, but not essential...
 she can reply via work...


I want to be the first to thank you for making your misses's work network 
less 
safe. I'm sure they won't mind all the virus laden emails you're sneaking 
through the back door. I'm sure I don't need to mention how much work your 

misses gets done while she's reading personal emails.

James Hicks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

Refer to: http://www.phpdeveloper.org/index/2279
--
Regards,
 Ben Ramsey
 http://benramsey.com
---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 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 (only) use SMTP. Just configure your php.ini 
correctly and it should work.

--
Regards,
 Ben Ramsey
 http://benramsey.com
---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 third party template, will my site have a different look or is it
only a parser that will take my designed template and data and combine
them. I really don't know.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 try again.


--
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 unsubscribe, visit: http://www.php.net/unsub.php


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.
 


--
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 unsubscribe, visit: http://www.php.net/unsub.php


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.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 development areas where 
you get both programmers and designers working closely together. My limited experience 
of designers is that they get petrified at the sight of anything that looks like code 
nad personally I get horribly confused when I see some of those fiendishly complicated 
interfaces for graphic design applications.

In theory templates might offer a way of bridging this chasm - though I have my doubts.

Regards,

Michael Egan

-Original Message-
From: EE [mailto:[EMAIL PROTECTED]
Sent: 13 July 2004 14:39
To: php.net
Subject: [PHP] Templates Are Driving me Nuts[Scanned]


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 third party template, will my site have a different look or is it
only a parser that will take my designed template and data and combine
them. I really don't know.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 
  
  
The information contained in this email (and in any attachments sent with it) is 
confidential. It is intended for the addressee only. Access to this email by anyone 
else is unintended and unauthorized.  
If you are not the original addressee, 3tc asks you to please maintain 
confidentiality. If you have received this email in error please notify 3tc 
immediately by replying to it, then destroy any copies and delete it from your 
computer system. 
  
Any use, dissemination, forwarding, printing or copying of this email by anyone except 
the addressee in the normal course of his/her business, is strictly prohibited. 3tc 
owns the copyright in this email and any document created by us and assert the right 
to be identified as the author of it. Copyright has not been transferred to the 
addressee. 
We protect our systems with Sophos Anti-virus -  
www.sophos.com 
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 c:\http\cgi\list7.php on line 13

script language='php' 
  $searchtype = $_REQUEST['searchtype'];  -- this is line 13
  $searchterm = $_REQUEST['searchterm'];
  $matchtype  = $_REQUEST['match'];

Any suggestions on the best way to access data input into a FORM in version 5.x would 
be most appreciated.

Mike




 

[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 c:\http\cgi\list7.php on line 13

script language='php' 
  $searchtype = $_REQUEST['searchtype'];  -- this is line 13
  $searchterm = $_REQUEST['searchterm'];
  $matchtype  = $_REQUEST['match'];

Any suggestions on the best way to access data input into a FORM in version 5.x would 
be most appreciated.

Mike



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] 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.
 -
 http://www.raditha.com/megaupload/upload.php
 Sneak past the PHP file upload limits.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 -0600, Matt Busche [EMAIL PROTECTED] 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:
 
 http://mycompany.com/myservlet?request=doSomethingarg1=meatarg2=potatoes
 
 and then use the returned stream of data to service the original PHP
 request.  Clear?
 
 I quickly found the PHP HTTP library (
 http://www.php.net/manual/en/ref.http.php ), but my quick perusal makes me
 think this is only useful for controlling the HTTP response sent back to the
 browser making the original PHP request.
 
 Can someone help me?
 
 FYI:  I'm a newbie.  Please forgive me if this is an old-hat question.
 
 Matt
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 !DSPAM:40f3848311391443210090!
 
 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

Basically a template system allows you to seperate your display code
from the rest, allowing quick and easy updating of the look and feel
of the site without changing any (or much) of your PHP code. This is
assuming you've architected it well, of course. ;-)

On Tue, 13 Jul 2004 16:39:04 +0300, EE [EMAIL PROTECTED] wrote:
 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 third party template, will my site have a different look or is it
 only a parser that will take my designed template and data and combine
 them. I really don't know.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 !DSPAM:40f3e49a72101927516234!
 
 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 a third party template, will my site have a different look or is it
only a parser that will take my designed template and data and combine
them. I really don't know.
The whole idea behind templates is to separate your business logic 
from your presentation logic. This means you have a script that does 
all of your processing and data retrieval, etc. This script is generally 
all PHP that performs your business logic. Then you have your template 
that only has code meant to control your presentation. This file is 
mostly HTML, generally, with some special template code or limited PHP 
thrown in to control presentation _only_. The idea is that changes to 
the presentation layer will not require changes to your business layer 
and vice-versa.

Everyone has their own ideas on whether this is needed and what kind of 
templates to use. There are a ton of engines out there that you can use. 
Some are simple and some turn into programming languages of their own 
and just present another layer of failure/difficulty. Some people 
recommend just using PHP both in your business and presentation layer as 
this is what PHP was originally designed for.

Personal preference. :)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 c:\http\cgi\list7.php on line 13
script language='php' 
  $searchtype = $_REQUEST['searchtype'];  -- this is line 13
This is simply a notice saying that there was no variable named 
'searchtype' passed from your form data. More than likely searchtype is 
a checkbox. When checkboxes are not checked, they are not sent with the 
form data, so there simply IS NO $_REQUEST['searchtype'] variable. It is 
not set.

You should be checking for this using isset().
$searchtype = isset($_REQUEST['searchtype']) ? $_REQUEST['searchtype'] : 
'default value';

You will want to check the other values, too. Just because your form has 
three elements in it, that doesn't mean every request coming to your 
processing script will have the same three elements...

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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
[EMAIL PROTECTED] wrote:
 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 c:\http\cgi\list7.php on line 13
 
 script language='php'
   $searchtype = $_REQUEST['searchtype'];  -- this is line 13
   $searchterm = $_REQUEST['searchterm'];
   $matchtype  = $_REQUEST['match'];
 
 Any suggestions on the best way to access data input into a FORM in version 5.x 
 would be most appreciated.
 
 Mike
 
 !DSPAM:40f3ed7292541994517991!
 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 never happens?
Do it in some countries (like mine), and you probably will be fired. Put 
a network in a risk by using this kind of scripts and sure you will be 
fired... Do it in a network I manage, and sure you will be fired.

So ... be really carefull, administrators block sites for some reason. 
And don't forget to ask for the Terms of Use about your work computer.

Regards,
Jordi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 one enters:w'   my word ends upw\' I 
have tried using htmlentities in my array and other places (to take the slash out) but 
to no avail.  Here is what I tried when putting my words in my array:

$zchrpos = 0;
$tok = strtok($zwords,  \r);
while ($tok !== FALSE) {
$toks[] = htmlentities(trim($tok));
$tok = strtok( \r);
$zchrpos++;
}
Any help would be appreciated,
Doug

Sorry about the return receipt turned on in previous emails!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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.

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 worry about GPC order AND I 
can use GET and POST together at the same time.

Michael Purdy [EMAIL PROTECTED] wrote
:quote ---
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 c:\http\cgi\list7.php on line 13
script language='php' 
 $searchtype = $_REQUEST['searchtype'];  -- this is line 13
 $searchterm = $_REQUEST['searchterm'];
 $matchtype  = $_REQUEST['match'];

Any suggestions on the best way to access data input into a FORM in version 5.x would 
be most appreciated.
Mike
/quote ---


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 unsubscribe, visit: http://www.php.net/unsub.php


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 use the returned stream of data to service the original PHP
request.  Clear?
[/snip]

There is always cURL http://www.php.net/curl

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 way I  don't have to worry about GPC order AND I 
can use GET and POST together at the same time.
Yes, you're correct. Personal preference as to what to use, though. I 
like using $_REQUEST since it doesn't matter what method my forms use 
and in the end, I really don't care how the user sends me the 
information since it's all validated anyhow. If you send me the form 
data through a cookie, who cares, as long as it's correct...

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 have 'magic_quoutes_gpc' on, then 
delete the page:

   http://us4.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
or, you can just do a loop on your GET/POST/COOKIE variables after 
testing if magic quotes is on using:

   'get_magic_quotes_gpc()' to see if you need to strip them off.
if( get_magic_quotes_gpc() ){
   reset $_GET;
|  while (list($key, $value) = each ($_GET)) {
 $_GET[$key]= stripslashes($value);
 }
|reset $_POST;
|  while (list($key, $value) = each ($_POST)) {
 $_POST[$key]= stripslashes($value);
 }
|reset $_COOKIE;
|  while (list($key, $value) = each ($_COOKIE)) {
 $_COOKIE[$key]= stripslashes($value);
 }
||}|
Magic quotes is to prepare input for databases.
It **MAY** be possible to turn it off **BEFORE** the slashes get added 
in your '.htaccess' file using:

php_value magic_quotes_gpc 0
php_value magic_quotes_sybase 0
Hull, Douglas D [EMAIL PROTECTED] wrote:
quote -
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 one enters:w'   my word ends upw\' I 
have tried using htmlentities in my array and other places (to take the slash out) but 
to no avail.  Here is what I tried when putting my words in my array:
$zchrpos = 0;
$tok = strtok($zwords,  \r);
while ($tok !== FALSE) {
$toks[] = htmlentities(trim($tok));
$tok = strtok( \r);
$zchrpos++;
}
Any help would be appreciated,
Doug
/quote -
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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
--http://killermookie.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 PROTECTED]
cc
[EMAIL PROTECTED]
Subject
Re: [PHP] Email, Hotmail and PHP?






[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.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.





*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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
use those variables until a post or some similar action has been performed
by the user.

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.

-- 
-
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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
http://www.php.net/error_reporting ). Is it good practice? Not really,
especially if you have a shop where more than one developer may be
touching the code. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 server-side, so you
don't need to wait for a request/response loop before reading them:

session_start();
$_SESSION['foo'] = 'bar';
echo $_SESSION['foo']; // 'foo' is available immediately

No need to perform any special declarations. It's cookies that need to
wait for a subsequent request to be available via getcookie().

Careful with your session variable naming - you may want to implement a
primitive namespace, by using named arrays in $_SESSION, such as
$_SESSION['auth']['username'] or $_SESSION['prefs']['boxers_or_briefs'].

-mike.

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

I'm not quite sure what your question is, but here's some info. You
have to call session_start() before using anything in the session.
This must be called before there is any output to the browser.

After the call to session_start() you can get/set/unset any session
value you want at any time in the script (all of this is stored on the
server). The best way to do all of this is through the $_SESSION
superglobal. Use it like a normal assicative array:

$_SESSION['var'] = 'value';

or:

$_SESSION['array'] = array(1, 2, 3, 4);

os:

$_SESSION['object'] = new Object();

Everything you put in there will be available from any function
without having to use the global keyword or the $GLOBALS superglobal.

Note that you can't store recources in the session (at least, they
can't be used as resources on subsequent requests.) This includes
things such as open file desriptors and database connections or
statement handles.

-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 unsubscribe, visit: http://www.php.net/unsub.php



[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 somewhere throughout the code that I didn't know about?

Is there a way to be sure what's going on here?

-- 
-Josh

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

-- 
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 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 $var = 0 somewhere throughout the code that I didn't know about?

 Is there a way to be sure what's going on here?

 --
 -Josh

What about the isset function? Or any of the following:

http://us3.php.net/manual/en/ref.var.php

--Matthew Sims
--http://killermookie.org

-- 
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 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());
  var_dump((bool) );
  var_dump((bool) 0);
  var_dump((bool) null);
  var_dump((bool) false);


 doesn't work anymore. I've had to change code to
 
 if($var  0)

what is the actual value of $var?

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 trapezoid!

-- 
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 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 = $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 changed how that works.

And using is_string() or is_int() is pointless 'cause it doesn't
matter. I just want to know if the value != 0.

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.



On Tue, 13 Jul 2004 19:39:09 +, Curt Zirzow
[EMAIL PROTECTED] wrote:
 * 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());
   var_dump((bool) );
   var_dump((bool) 0);
   var_dump((bool) null);
   var_dump((bool) false);
 
 
  doesn't work anymore. I've had to change code to
 
  if($var  0)
 
 what is the actual value of $var?
 
 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 trapezoid!
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
-Josh

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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.

Thanks
Jamie

-- 
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 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
 
 $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 changed how that works.
 
 And using is_string() or is_int() is pointless 'cause it doesn't
 matter. I just want to know if the value != 0.
 
 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.
 

AFAIK, PHP has for some time treated 0, '0', '', false, null, and
array() all the same. If you do if($var) when $var is any of those, it
results in false. If you want it to be non-zero, you should do !== 0.
If you also don't want '0', you can do if((int)$var !== 0).

-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
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 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 changed how that works.

 And using is_string() or is_int() is pointless 'cause it doesn't
 matter. I just want to know if the value != 0.

 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.

This sounds an awful lot like the problem I experienced with PHP's Sybase extension
after upgrading to PHP 4.3.4.  Is your query retrieving data from a bit field ('0'
or '1')?  If so, you might want to read this:

http://marc.theaimsgroup.com/?l=php-devm=108377430919818w=2

I never did get a response to it.  I've had it on my TODO list to open it as a bug
for the longest time, but I haven't had a chance to come up with minimal reproduce
code and I frankly haven't had the time to deal with it.  I managed to work around
the problem by maintaining a local patch to PHP to undo the change mentioned in my
post above.  Let me know if this is your issue and I can explain more and/or provide
my simple patch.

-- 
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 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 looking for:
if ((int)$var != 0) {
  // Do Something
}

Also, if you are going to use this variable as an integer later you can
do the following to explicitly convert $var into an integer:
$var = (int)$var;

That should convert 0 into the integer value 0.  Also, note the
following:

var_dump(0 == 0); //bool(true)
var_dump(0 === 0);//bool(false)

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

-- 
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 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 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 looking for:
 if ((int)$var != 0) {
   // Do Something
 }
 
 Also, if you are going to use this variable as an integer later you can
 do the following to explicitly convert $var into an integer:
 $var = (int)$var;
 
 That should convert 0 into the integer value 0.  Also, note the
 following:
 
 var_dump(0 == 0); //bool(true)
 var_dump(0 === 0);//bool(false)
 
 --
 Adam Bregenzer
 [EMAIL PROTECTED]
 http://adam.bregenzer.net/
 
 


-- 
-Josh

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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.
 
 Thanks
 Jamie
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
 


-- 
Michael Gale
Network Administrator
Utilitran Corporation

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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
 
 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.
 
 Thanks
 Jamie
 
 --
 PHP General Mailing List (http://www.php.net/) To 
 unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 phpinfo there is not a SCRIPT_URI

This is weird and confusing... why does it only work on a few operating
systems :S

Jamie

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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
 
  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 phpinfo there is not a SCRIPT_URI
 
 This is weird and confusing... why does it only work on a few 
 operating systems :S
 
 Jamie
 
 --
 PHP General Mailing List (http://www.php.net/) To 
 unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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
https://host.mydomain.com/phpinfo.php
_SERVER[SCRIPT_URI]
https://host.mydomain.com/phpinfo.php
Michael.

According to my phpinfo there is not a SCRIPT_URI
This is weird and confusing... why does it only work on a few operating
systems :S
Jamie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 HTTPS what means the statement is evaluating as
false. When it should be true (as im currently viewing the page off a HTTP
connection)

Any ideas?

Jamie

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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 somewhere throughout the code that I didn't know about?

 Is there a way to be sure what's going on here?

 --
 -Josh

What about the isset function? Or any of the following:

http://us3.php.net/manual/en/ref.var.php

--Matthew Sims
--http://killermookie.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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. When i use my linux box it constantly
 displays We are using HTTPS what means the statement is evaluating as
 false. When it should be true (as im currently viewing the page off a HTTP
 connection)

You want to specifically check for 

  $_SERVER[HTTPS] == on

because if you're not using HTTPS then $_SERVER[HTTPS] does not exist.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
If the code and the comments disagree, then both are probably wrong.
-- Norm Schryer
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 (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 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 everything
that being compared to and int to make sure.



On Tue, 13 Jul 2004 14:01:47 -0700 (GMT-07:00),
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 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 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 somewhere throughout the code that I didn't know about?
 
  Is there a way to be sure what's going on here?
 
  --
  -Josh
 
 What about the isset function? Or any of the following:
 
 http://us3.php.net/manual/en/ref.var.php
 
 --Matthew Sims
 --http://killermookie.org
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
-Josh

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 that. You do not need to relay the 
message in any intermediate server. Just use the direct delivery mode.

If you do not want to change your scripts, much you can use script named 
smtp_mail.php that wraps arround the classes to provide a function named 
smtp_mail() that works like the mail() function but provide this direct 
delivery mode and other features.

http://www.phpclasses.org/mimemessage
http://www.phpclasses.org/smtpclass
Since you are using Windows, your PHP function GetMXRR is probably not 
functional. In that case you will also need an emulation function 
provided by this class.

http://www.phpclasses.org/phpresolver
What you want is not conventional but it can be done thanks to all these 
classes. Just let me know if you need assistance to set them up.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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:
http://mycompany.com/myservlet?request=doSomethingarg1=meatarg2=potatoes
and then use the returned stream of data to service the original PHP
request.  Clear?
I quickly found the PHP HTTP library (
http://www.php.net/manual/en/ref.http.php ), but my quick perusal makes me
think this is only useful for controlling the HTTP response sent back to the
browser making the original PHP request.
You may want to try this HTTP client class. If necessary it supports 
cookies and submitting forms with field values via POST if you want:

http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 sessions or cookies?

 

In case you're curious, more details on the specifics of the problem I'm
experiencing:

 

I have a prepend file that executes start_session.  The script assumes the
user is a guest if $_SESSION[UserID] is not set.  All guests route to the
login screen.  Successful authentication sets $_SESSION[UserID] and sends
you to the original requested page.

 

It seems fairly straight forward to me.  People are able to login and start
using the site, but the login screen displays randomly after they've already
authenticated successfully.  

 

It sounds like PHP session data is being lost on the server.  I've also seen
error messages on web pages that report PHP / MySQL as having trouble
reading from the temp directory.  Here's the extact message:  ERRORError
writing file '/tmp/MYiYcf7q' (Errcode: 28).

 

Anyway, those are the details.  I look forward to hearing what you think.

 

-Ed

 



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 secure:
PHP sessions or cookies?
Session certainly.
It sounds like PHP session data is being lost on the server.  I've also seen
error messages on web pages that report PHP / MySQL as having trouble
reading from the temp directory.  Here's the extact message:  ERRORError
writing file '/tmp/MYiYcf7q' (Errcode: 28).
Looks like /tmp directory is out of space. Change the directory to your 
own, it's more secure anyway.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 version of PHP or the timeout settings for
sessions. Check that stuff in phpinfo().

On Tue, 13 Jul 2004 14:47:16 -0700, Ed Lazor [EMAIL PROTECTED] 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 secure:
 PHP sessions or cookies?
 
 In case you're curious, more details on the specifics of the problem I'm
 experiencing:
 
 I have a prepend file that executes start_session.  The script assumes the
 user is a guest if $_SESSION[UserID] is not set.  All guests route to the
 login screen.  Successful authentication sets $_SESSION[UserID] and sends
 you to the original requested page.
 
 It seems fairly straight forward to me.  People are able to login and start
 using the site, but the login screen displays randomly after they've already
 authenticated successfully.
 
 It sounds like PHP session data is being lost on the server.  I've also seen
 error messages on web pages that report PHP / MySQL as having trouble
 reading from the temp directory.  Here's the extact message:  ERRORError
 writing file '/tmp/MYiYcf7q' (Errcode: 28).
 
 Anyway, those are the details.  I look forward to hearing what you think.
 
 -Ed
 
 !DSPAM:40f4566021229974011339!
 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 feedback from users to see if they're still getting login
prompts.

Thanks Marek =)

-Ed

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 mcrypt (takes some time)?


Thanks in advance
Klaus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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.
 
 DO NOT REPLY TO THIS MESSAGE!
 
 All replies to this address will be deleted.
 
 You have attempted to reach an address that is not a part of the
 Gunsmoke.com domain.
 
 If you feel that this message has reached you in error, you may enquire at
 help+at+gunsmoke.com (remove the + characters from the address before
 using).
 
 Set the subject of your message to:
 HELP WITH EMAIL
 
 Sorry to resort to such drastic measures, but the increasing volume of
 SPAM messages leaves no choice. Thanks in advance for your understanding.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 [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.
 
  DO NOT REPLY TO THIS MESSAGE!
 
  All replies to this address will be deleted.
 
  You have attempted to reach an address that is not a part of the
  Gunsmoke.com domain.
 
  If you feel that this message has reached you in error, you may enquire at
  help+at+gunsmoke.com (remove the + characters from the address before
  using).
 
  Set the subject of your message to:
  HELP WITH EMAIL
 
  Sorry to resort to such drastic measures, but the increasing volume of
  SPAM messages leaves no choice. Thanks in advance for your understanding.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 !DSPAM:40f45dfc39501737413515!
 
 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

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

if (0) { echo '0'; }
if ()  { echo ''; }
if (0)   { echo 0; }

As I pointed out earlier, are still all the same; this behaviour
hasn't changed.



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 trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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.

http://localhost/view.php?ID=33

You end up needing a different way to reference which document should be
displayed, if you don't want people to know the ID.  In this case, I'd end
up specifying the name of the document to display.

http://localhost/view.php?Name=The%20Pizza%20Caper

As you can see, you end up having to deal with spaces and other special
characters in the name...  Basically, I'd just use the ID and not worry
about encrypting it, unless you have a good reason to do so.

-Ed

 

 -Original Message-
 Is it ok to use the company-id or do I have to encrypt the id
 using mcrypt (takes some time)?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 serve the user the correct content,
and all from what is stored in the session. Meaning you dont need
client side javascript or hidden forms at all.

If the id's are unguessable however I wouldt care that much, on
the other hand - is the information in mention sensitive? If so you
are back to the login system again.

--
Kim Steinhaug
-
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
-
www.steinhaug.com - www.easywebshop.no - www.easycms.no www.webkitpro.com
-


Klaus [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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 mcrypt (takes some time)?


 Thanks in advance
 Klaus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 friend of mine did a supportsystem where the
loggin system was pure cookies... Man - did their staff get a lot of
support from people who didnt manage to logg into the system...
As mentioned - this were users with cookies turned off

As the other users mentioned, the /tmp folder might be out of space,
however your provider might also have some custom setup on that
server which screws up the /tmp folder here and there. I know for
a fact one large provider here in Norway who has this problem on
one of their servers due to a heavy site which from time to time
sucks up resources resulting in the /tmp folder getting messed up.

If you still havnt solved your problem, get your provider to move you
to another of his servers (physically!), or change provider. You shouldnt
be having theese problems.

--

--
Kim Steinhaug
-
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
-
www.steinhaug.com - www.easywebshop.no - www.easycms.no www.webkitpro.com
-


Ed Lazor [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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 sessions or cookies?



 In case you're curious, more details on the specifics of the problem I'm
 experiencing:



 I have a prepend file that executes start_session.  The script assumes the
 user is a guest if $_SESSION[UserID] is not set.  All guests route to
the
 login screen.  Successful authentication sets $_SESSION[UserID] and
sends
 you to the original requested page.



 It seems fairly straight forward to me.  People are able to login and
start
 using the site, but the login screen displays randomly after they've
already
 authenticated successfully.



 It sounds like PHP session data is being lost on the server.  I've also
seen
 error messages on web pages that report PHP / MySQL as having trouble
 reading from the temp directory.  Here's the extact message:  ERRORError
 writing file '/tmp/MYiYcf7q' (Errcode: 28).



 Anyway, those are the details.  I look forward to hearing what you think.



 -Ed





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 youre on a Win32 platform you might solve this nicely, since this gives
you
alot of possibilities with exec and such. But I wouldt spend to much time on
this
if the system is to run on a *nix system.

I hope someone proove me wrong here, but theese are my findings.
Possible there are some nasty good proprietary Excel systems out there?
Anyone?

--
Kim Steinhaug
-
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
-
www.steinhaug.com - www.easywebshop.no - www.easycms.no www.webkitpro.com
-


Arnold [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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 guess
the
 spreadsheet Excel Writer package), let Excel do the work and produce the
 output information, in PHP? Or is there an easier way to use an Excel
sheet
 together with web pages?

 Arnold

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 constantly
 displays We are using HTTPS what means the statement is evaluating as
 false. When it should be true (as im currently viewing the page off a HTTP
 connection)

The problem is that this HTTPS variable is not a standard variable
that has been defined. 

Apache's SSL module will only set *a* value to HTTPS if in https is
being used. The value it sets just so happens to be 'on'

Windows servers (versions unkown) will set 'on' or  'off.

Other servers will use either 'on' or 'ON', with or without
corresponding 'off' or 'OFF'.

So, as just described, your best bet would be:

if (isset($_SERVER['HTTPS'])  strtolower($_SERVER['HTTPS']) == 'on')
  // https is on.
} else {
  // off.
}


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 trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 fingers crossed.

Refer to: http://www.phpdeveloper.org/index/2279
www.php.net says PHP 5.0.0 is released now. I'm sure there'll be an 
annoucement soon...

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 pointing out to you why it isn't 
working. Just look in $_SERVER and find something that will work under 
whatever systems you need it to work under. If need be have more than one 
test.

 Shouldnt it have same output accross all platforms?

Not necessarily, the info in $_SERVER is largely provided by the webserver and 
PHP has no control over that.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
All articles that coruscate with resplendence are not truly auriferous.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 libxml2 library (http://www.xmlsoft.org/).
- A new SimpleXML extension for easily accessing and manipulating XML as 
PHP objects. It can also interface with the DOM extension and vice-versa.
- A brand new built-in SOAP extension for interoperability with Web Services.
- A new MySQL extension named MySQLi for developers using MySQL 4.1 and 
later. This new extension includes an object-oriented interface in addition 
to a traditional interface; as well as support for many of MySQL's new 
features, such as prepared statements.
- SQLite has been bundled with PHP. For more information on SQLite, please 
visit their website (http://www.sqlite.org/).
- Streams have been greatly improved, including the ability to access 
low-level socket operations on streams.
- And lots more...

Enjoy!
PHP Development Team
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


  1   2   >