[PHP] doubt...

2002-05-01 Thread ShijuFrancis

Hi ,
When i'm using the declare construct i'm getting an error Cannot
open the site.The connection with the server was reset.
Culd u please help me in this...
Thanks in advance..
Shiju
 




Re: [PHP] PHP Editors

2002-05-01 Thread Justin French

Actually, I think you'll find that you can't use it (for anything
commercial) in the 30-day trial period -- that'd be mentioned in that block
of text you clicked accept to :)

But that's really a discussion about software licensing, not PHP.


Justin French


on 01/05/02 5:32 PM, r ([EMAIL PROTECTED]) wrote:

 Hey,
 I use MacroMedia's ultra dev for my JSP/ASP pages but i know it supports
 PHP.
 The only problem i see is that it sure as hell aint free, you can use it for
 the first 30 days of course...
 after than i've heard that SOME people crack it and use it illegallybut
 i dont know much about that..;-)
 Cheers,
 -Ryan
 
 - Original Message -
 From: Liam Gibbs [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 30, 2002 11:11 AM
 Subject: [PHP] PHP Editors
 
 
 Does anybody know of any PHP project editors,
 something that will group together all the PHP, INC,
 HTML, CSS files together into one logical project?
 Preferrably freeware/shareware, obviously.
 
 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com
 
 --
 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




[PHP] Ann: QaDRAM Studio PR1 B837

2002-05-01 Thread José León Serna

Hi!
I'm proud to announce the next release of QaDRAM Studio, this is the first
release I can say is usable, where usable means, you can use it as a text
editor, and to build the initial structure of your pages. I say this because
templates are working right now, based on ModeliXe, this support is made
through a plug-in so there will be support for another templates in the
future. Also you can access databases using ADO DB, this support has been
implemented in a set of components, this means there will be support for
another data access components in the future. I have tried not to be tied to
anything, you can setup the project to not use templates at all and generate
a single file like in previous versions. I have put online a really small
tutorial about the use of QaDRAM Studio, it covers the first steps and bit
of JavaScript and databases. You can find the tutorial at
http://studio.qadram.com/tutorial, and the release is available at
http://studio.qadram.com/download.php?op=getitlid=12 and I think it's worth
a download respect the previous version.

Remember you always can help the development of this project spreading the
word about it, speak about it on forums, send messages to a friends, and
tell everyone you know to give it a look. Also you can report any bugs you
find at http://bugs.qadram.com.

Best Regards.




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




[PHP] Re: PHP Editors

2002-05-01 Thread José León Serna

Hello:

 Does anybody know of any PHP project editors,
 something that will group together all the PHP, INC,
 HTML, CSS files together into one logical project?
 Preferrably freeware/shareware, obviously.
Check out QaDRAM Studio at http://studio.qadram.com, you can group together
any kind of file and there's syntax highlighting support for PHP, HTML, CSS
and JS.

Regards.



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




[PHP] snmp_set_quick_print or snmpwalkoid issue ?

2002-05-01 Thread Razvan Cosma

 First of all, gretings to everyone (I'm new here).

 And the problem:
#!/usr/local/bin/php -q
?
snmp_set_quick_print(0);
$test=snmpwalkoid(1.1.1.1,public,.1.3.6.1.2.1.2.2.1.16);
for (reset($test); $i = key($test); next($test)) {
echo $i:\n$test[$i]\n;
}
?
results in:
interfaces.ifTable.ifEntry.ifOutOctets.1:
interfaces.ifTable.ifEntry.ifOutOctets.1 = Counter32: 137600220
interfaces.ifTable.ifEntry.ifOutOctets.2:
interfaces.ifTable.ifEntry.ifOutOctets.2 = Counter32: 25026545

and with snmp_set_quick_print(1):
interfaces.ifTable.ifEntry.ifOutOctets.1:
interfaces.ifTable.ifEntry.ifOutOctets.1 137600606
interfaces.ifTable.ifEntry.ifOutOctets.2:
interfaces.ifTable.ifEntry.ifOutOctets.2 25031056

Shouldn't I get only the last field with the actual value ??
Details: php-4.1.2 ucd-snmp-4.2.4 both from tarballs.





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




RE: [PHP] doubt...

2002-05-01 Thread Jon Haworth

Hi,

 When i'm using the declare construct i'm getting 
 an error Cannot open the site. The connection 
 with the server was reset. Culd u please help me in this...

Show us some code!

Cheers
Jon


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




RE: [PHP] PHP Editors

2002-05-01 Thread Ford, Mike [LSS]

 -Original Message-
 From: Liam Gibbs [mailto:[EMAIL PROTECTED]]
 Sent: 30 April 2002 19:11
 
 Does anybody know of any PHP project editors,
 something that will group together all the PHP, INC,
 HTML, CSS files together into one logical project?
 Preferrably freeware/shareware, obviously.

EditPlus can group files into projects.  It's also a great text editor with 
customizable syntax highlighting for PHP, HTML and CSS (and many others!), 
auto-completion, and other useful features.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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




[PHP] Re: i cannot pass variables to php script...

2002-05-01 Thread Yuri Petro

Just set register_globals = On in your php.ini file.

--
Kind regards,
Yuri.


 www.AceHoster.com  Quality web hosting



Efa [EMAIL PROTECTED] ???/ ?  ?:
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi!
 I have a problem with passing variables to php script with simple GET.
 example:

 --- hello.html -
 htmlheadtitle=hello/head
 body
 a href=hello.php?arg=worldhello/a
 /body
 /html



 --- hello.php --
 ?
 printf(arg=$argbr);
 ?


 output from clicking on the link is:

 arg=


 I should mention that I use mod_userdir and the script/html are lying in
 home directory for the user ( /home/username/public_html/...), and
 URL=http://server/~username/hello.html


 I am attaching output of phpinfo() and a copy of httpd.conf
 .htaccess file is empty btw.


 Cheers

 --
 /admir efendic, stockholm, sweden





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




Re: [PHP] odd behavior

2002-05-01 Thread heinisch

At 30.04.2002  18:29, you wrote:

When I run this the first time, file.txt contains value of 30. Then I add 15
to it with following script and file now contains value of 45. I look at
file.txt after write and it does indeed contain number 45. But when I run
script 24 hours later via cron job, it still thinks file.txt is holding
number 30. Is $file somehow retaining value of 30 and not getting new value
of 45 when script runs second time? What is it called when this happens?

?php

$file = file('/usr/home/xyz/file.txt'); //file.txt contains value of 30

$number = 15;

$newnumber = $file + $number; //$newnumber now is 45

$fp = fopen('/usr/home/xyz/file.txt','w');
fputs($fp,$newnumber); // write value 45 to file.txt
fclose($fp);

?

Thanks

Craig 
[EMAIL PROTECTED]
Hi Craig,
you read the file in an array, therfore you have to add your number to 
$file[0];
Also look, if the rights are set correct.
BTW I just tried it, and all errors appeared.

HTH Oliver


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




[PHP] Free PHP Webhosting

2002-05-01 Thread r

 Greetings guys,
 Special greetings to Steve,Nathon,Michael,John and ANYBODY else who was
kind
 enough to help me.)

 Posted this a couple of days back but have compleated some of the
 worksome balance(scroll down)



 o.k heres the rough project (its for a personals site):

 1.Take user details (email,username,password, address date-of-birth etc),
 preview them, write to database, make a folder with the username of the
 user,send an email for confirmation.
 (*I finished coding this, you wont have to do this*)



 2.user should be able to upload upto 5,pics each pic not more than 50
k,into
 particular folder.
 3.User can delete any picture and add more

 4.User can tick which pic they want to display and which not.
 (**Did this too)

 5.there should be a quick look where when someone wants to join they click
 on quick look and they see photo with short description (Photo should be
 resized via program) eg:


 |-
|  |
| Photo 1 | Part of description ...
|  | join to see full (Link)
|  |
|-
|  |
| Photo 2 | Part of description ...
|  | join to see full (Link)
|  |
|-
|  |
| Photo 3 | Part of description ...
|  | join to see full (Link)
|  |
|-
|  |
| Photo 4 | Part of description ...
|  | join to see full (Link)
|  |
|-

   etc etc


 THATS IT! if you feel you can do it or have alredy done a similar project,
 write in, will respond with images etc, with my company website URL and my
 personal phone no if you want to talk about the work.


 Any questions...just ask.
 Dont bother with the designing part.
 IMPORTANT: I will need comments everywhere explaining EXACTLY what is being
 done.


 Cheers,
 -Ryan.



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




Re: [PHP] apps that need register globals 'on' and others require

2002-05-01 Thread 1LT John W. Holmes

I remember a problem like this with 4.1.1, is it still present in 4.2?

Register_global = Off == Use session_register(var);
Register_globals = On == Use $_SESSION[var] = value;

Is that still the case for 4.2, or can you do it either way?

---John Holmes...

- Original Message -
From: [EMAIL PROTECTED]
To: Philip Olson [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 11:39 PM
Subject: Re: [PHP] apps that need register globals 'on' and others require


Addressed to: Philip Olson [EMAIL PROTECTED]
  [EMAIL PROTECTED]

** Reply to note from Philip Olson [EMAIL PROTECTED] Tue, 30 Apr 2002
22:45:49 + (GMT)

 Btw, I can't think of a reason why a script designed
 with register_globals = off would not work with it
 on.  Which is why assuming register_globals = off will
 make your scripts more portable.

I can.  Sessions.  I believe that if register globals is on  PHP looks at
the global variables to write registered variables else it looks to
$_SESSION.  I did not track down the exact reason I can't use $_SESSION
with register_globals = on, I just dropped back to using
session_register(), but I did have a problem.


Rick

Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com

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




[PHP] Retrieving name of error_log file

2002-05-01 Thread Neil Freeman

Hi,

How do you obtain the value of 'error_log' (set within a .htaccess
file). Is there a $HTTP_x_VARS array available which contains this
information?

Any help greatly appreciated.

Cheers,

Neil

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]


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




[PHP] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread Jacky Kenna


Hi  We are a publishing company based in London. We have developed a
multi-user
MS Access contact management and bookkeeping database system which we want
to adapt / re-write such that it can be used over the web ( ASP) using
Internet
Explorer (or similar) from any location, as our clients would like to use
it.

We are therefore looking for someone to develope or who will head a team of
developers and
co-ordinate this project. If you are interested in working with us on this,
please e-mail [EMAIL PROTECTED] with a brief outline of your knowledge
and experience of programming languages and I will get back to you as soon
as possible.

Jacky Kenna
Managing Director, PDA
0207 384 1985
[EMAIL PROTECTED]




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




[PHP] javascript variables from...

2002-05-01 Thread Brian McGarvie

I'm trying to pass the values of screen.height/width to php... any
suggestions?

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




RE: [PHP] session expiry

2002-05-01 Thread John Holmes

That's not what a session if for. You'll have to set your own cookie to
remember who the person is, and start a new session for them when they
return.

---John Holmes...

 -Original Message-
 From: Justin French [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 4:58 AM
 To: php
 Subject: [PHP] session expiry
 
 Hi all,
 
 I'm a little confused after reading some of the user notes on the
session
 pages in the manual.
 
 I have a perfectly functioning script which i'm happy with which is
 managing
 all my sessions.  However, the sessions ends when the browser is
closed
 (or
 they log out).
 
 I wish to modify the login form so that they can say remember me or
 don't
 remember me pull-down.
 
 So, I need to know what to do in my session to have the session cookie
 last
 longer (say 30 days???).
 
 I thought it might be something like:
 
 ?
 $expireTime = 60*60*24*30; // 30 days
 session_set_cookie_params($expireTime);
 session_start();
 ?
 
 or (last two lines swapped):
 
 ?
 $expireTime = 60*60*24*30; // 30 days
 session_start();
 session_set_cookie_params($expireTime);
 ?
 
 But it doesn't seem to be working.  Any ideas?
 
 
 Justin French
 
 Creative Director
 http://Indent.com.au
 
 
 
 --
 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




[PHP] ODBC number of rows?

2002-05-01 Thread Brian McGarvie

odbc_num_rows($result);

the above return -1 always, what other way can you check if any rows
have been returned?

===
  Brian M McGarvie,
Web Appications Co-ordinator/Consultant
===
[ www.mcgarvie.net | www.lennox-mckinlay.co.uk]
===

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




RE: [PHP] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread John Holmes

I don't know what kind of company you run, but I consider this SPAM. You
sent this crap out to a bunch of PHP lists and you're looking for an ASP
programmer. Who cares if there are people on here that know ASP, that's
not why they are on this list. If they are looking for ASP jobs, they'll
subscribe to an ASP list. I wouldn't have anything to do with a company
that does this. Keep you SPAM to yourself next time and stop wasting my
time.

v/r

John Holmes

 -Original Message-
 From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 4:17 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
 [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
php-
 [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-gtk-
 [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED];
 [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
 [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 
 Hi  We are a publishing company based in London. We have developed a
 multi-user
 MS Access contact management and bookkeeping database system which we
want
 to adapt / re-write such that it can be used over the web ( ASP) using
 Internet
 Explorer (or similar) from any location, as our clients would like to
use
 it.
 
 We are therefore looking for someone to develope or who will head a
team
 of
 developers and
 co-ordinate this project. If you are interested in working with us on
 this,
 please e-mail [EMAIL PROTECTED] with a brief outline of your
 knowledge
 and experience of programming languages and I will get back to you as
soon
 as possible.
 
 Jacky Kenna
 Managing Director, PDA
 0207 384 1985
 [EMAIL PROTECTED]
 
 
 
 
 --
 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] javascript variables from...

2002-05-01 Thread John Holmes

You realize the page will have to refresh to do this?

Put the elements in the URL to the next page, or into hidden elements in
a form. 

---John Holmes...

 -Original Message-
 From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 4:28 AM
 To: Neil Freeman; PHP General
 Subject: [PHP] javascript variables from...
 
 I'm trying to pass the values of screen.height/width to php... any
 suggestions?
 
 --
 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




[PHP] Re: ODBC number of rows?

2002-05-01 Thread Manuel Lemos

Hello,

Brian McGarvie wrote:
 odbc_num_rows($result);
 
 the above return -1 always, what other way can you check if any rows
 have been returned?

Many ODBC drivers can't return that information.

You may want to try this database abstraction layer that provides 
emulation for that even when you use ODBC, even though it is discouraged 
for large result sets:

http://www.phpclasses.org/browse.html/package/20.html

Regards,
Manuel Lemos


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




[PHP] extract emails from txt file

2002-05-01 Thread

How can I found any email in my txt file and as example color it 




[PHP] Windows based Mail() problem (newbie)

2002-05-01 Thread Kim Kohen

Hello all,

I have a PHP/MySQL/Apache site served on Mac OSX.  The default install I
used doesn't have a PHP.ini file but I do have sendmail configured and
working.

There is a simple html form which leads to a 'confirmation' page.  They
press the confirm button and a hidden field passes the data to 'confirm.php'
which simply mails it to us.

It works perfectly from both Mac OSX and Mac OS9 clients with the mail being
received with all data intact.  However, when accessed by a Windows machine
running Explorer,  the sent mail contains no text. The email gets generated,
addressed and sent OK, but with a blank message.

I'm wondering if there's something simple I'm missing here as far as
configuration is concerned?  Any assistance would be greatly appreciated.

Cheers and thanks

kim

FWIW, the entire confirm.php script follows:

?php
mail([EMAIL PROTECTED], TEST ONLY , $web_submission);
include(web_thanks.html);
?


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




RE: [PHP] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread John Holmes

Gee, why didn't you copy all of the lists on your wonderful reply to my
message? I'm not trying to cock up life, whatever that is. I'm just
trying to stop people like you from wasting everyone's time. Don't send
messages to a PHP list about an ASP programmer or learn how to write a
decent job description that accurately describes what you're looking
for. I'm sure other people agree with me. I should Cc: your message and
response to all of the PHP lists you spammed to so everyone can know
what kind of company you are running. 

v/r

John Holmes

 -Original Message-
 From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 5:17 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 Wonderful that you have the time to reply.  Must be sitting on your
arse
 doing fuck all. At least we are doing something. Why do we all have to
put
 up with slobs like you who only have time to cock up life.  Surely you
 should be out marching it's May day.
 
 -Original Message-
 From: John Holmes [mailto:[EMAIL PROTECTED]]
 Sent: 01 May 2002 16:12
 To: [EMAIL PROTECTED]; 'Jacky Kenna'
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 
 I don't know what kind of company you run, but I consider this SPAM.
You
 sent this crap out to a bunch of PHP lists and you're looking for an
ASP
 programmer. Who cares if there are people on here that know ASP,
that's
 not why they are on this list. If they are looking for ASP jobs,
they'll
 subscribe to an ASP list. I wouldn't have anything to do with a
company
 that does this. Keep you SPAM to yourself next time and stop wasting
my
 time.
 
 v/r
 
 John Holmes
 
  -Original Message-
  From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 01, 2002 4:17 AM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
 php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-gtk-
  [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED];
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
  Subject: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 
  Hi  We are a publishing company based in London. We have developed a
  multi-user
  MS Access contact management and bookkeeping database system which
we
 want
  to adapt / re-write such that it can be used over the web ( ASP)
using
  Internet
  Explorer (or similar) from any location, as our clients would like
to
 use
  it.
 
  We are therefore looking for someone to develope or who will head a
 team
  of
  developers and
  co-ordinate this project. If you are interested in working with us
on
  this,
  please e-mail [EMAIL PROTECTED] with a brief outline of your
  knowledge
  and experience of programming languages and I will get back to you
as
 soon
  as possible.
 
  Jacky Kenna
  Managing Director, PDA
  0207 384 1985
  [EMAIL PROTECTED]
 
 
 
 
  --
  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] Windows based Mail() problem (newbie)

2002-05-01 Thread John Holmes

PHP is server side, so it's going to do the same thing each time. If
it's sending a blank message, then no data was received. How is the
content of the message created? Is it from a text field? Is there any
javascript or similar client-side operations going on? Those could be
handled differently on different versions of the browser on different
OSs.

---John Holmes...

 -Original Message-
 From: Kim Kohen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 5:27 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Windows based Mail() problem (newbie)
 
 Hello all,
 
 I have a PHP/MySQL/Apache site served on Mac OSX.  The default install
I
 used doesn't have a PHP.ini file but I do have sendmail configured and
 working.
 
 There is a simple html form which leads to a 'confirmation' page.
They
 press the confirm button and a hidden field passes the data to
 'confirm.php'
 which simply mails it to us.
 
 It works perfectly from both Mac OSX and Mac OS9 clients with the mail
 being
 received with all data intact.  However, when accessed by a Windows
 machine
 running Explorer,  the sent mail contains no text. The email gets
 generated,
 addressed and sent OK, but with a blank message.
 
 I'm wondering if there's something simple I'm missing here as far as
 configuration is concerned?  Any assistance would be greatly
appreciated.
 
 Cheers and thanks
 
 kim
 
 FWIW, the entire confirm.php script follows:
 
 ?php
 mail([EMAIL PROTECTED], TEST ONLY , $web_submission);
 include(web_thanks.html);
 ?
 
 
 --
 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] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread Brian Drexler

Ouchsucks to be that guy/company

-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 11:45 AM
To: [EMAIL PROTECTED]
Cc: 'PHP General'; [EMAIL PROTECTED]
Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap


Gee, why didn't you copy all of the lists on your wonderful reply to my
message? I'm not trying to cock up life, whatever that is. I'm just
trying to stop people like you from wasting everyone's time. Don't send
messages to a PHP list about an ASP programmer or learn how to write a
decent job description that accurately describes what you're looking
for. I'm sure other people agree with me. I should Cc: your message and
response to all of the PHP lists you spammed to so everyone can know
what kind of company you are running. 

v/r

John Holmes

 -Original Message-
 From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 5:17 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 Wonderful that you have the time to reply.  Must be sitting on your
arse
 doing fuck all. At least we are doing something. Why do we all have to
put
 up with slobs like you who only have time to cock up life.  Surely you
 should be out marching it's May day.
 
 -Original Message-
 From: John Holmes [mailto:[EMAIL PROTECTED]]
 Sent: 01 May 2002 16:12
 To: [EMAIL PROTECTED]; 'Jacky Kenna'
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 
 I don't know what kind of company you run, but I consider this SPAM.
You
 sent this crap out to a bunch of PHP lists and you're looking for an
ASP
 programmer. Who cares if there are people on here that know ASP,
that's
 not why they are on this list. If they are looking for ASP jobs,
they'll
 subscribe to an ASP list. I wouldn't have anything to do with a
company
 that does this. Keep you SPAM to yourself next time and stop wasting
my
 time.
 
 v/r
 
 John Holmes
 
  -Original Message-
  From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 01, 2002 4:17 AM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
 php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-gtk-
  [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED];
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
  Subject: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 
  Hi  We are a publishing company based in London. We have developed a
  multi-user
  MS Access contact management and bookkeeping database system which
we
 want
  to adapt / re-write such that it can be used over the web ( ASP)
using
  Internet
  Explorer (or similar) from any location, as our clients would like
to
 use
  it.
 
  We are therefore looking for someone to develope or who will head a
 team
  of
  developers and
  co-ordinate this project. If you are interested in working with us
on
  this,
  please e-mail [EMAIL PROTECTED] with a brief outline of your
  knowledge
  and experience of programming languages and I will get back to you
as
 soon
  as possible.
 
  Jacky Kenna
  Managing Director, PDA
  0207 384 1985
  [EMAIL PROTECTED]
 
 
 
 
  --
  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

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




Re: [PHP] odd behavior

2002-05-01 Thread charlesk

check clearstatcache()

Charles Killmer

-- Original Message --
From: Craig Westerman [EMAIL PROTECTED]
Date: Tue, 30 Apr 2002 18:29:37 -0500

When I run this the first time, file.txt contains value of 30. Then I add 15
to it with following script and file now contains value of 45. I look at
file.txt after write and it does indeed contain number 45. But when I run
script 24 hours later via cron job, it still thinks file.txt is holding
number 30. Is $file somehow retaining value of 30 and not getting new value
of 45 when script runs second time? What is it called when this happens?

?php

$file = file('/usr/home/xyz/file.txt'); //file.txt contains value of 30

$number = 15;

$newnumber = $file + $number; //$newnumber now is 45

$fp = fopen('/usr/home/xyz/file.txt','w');
fputs($fp,$newnumber); // write value 45 to file.txt
fclose($fp);

?

Thanks

Craig 
[EMAIL PROTECTED]


-- 
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] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread Kirk Babb

Well said John, this isn't a place for that, and the company guy showed
his colors pretty quick.

Anyway, on to business!  and a general php question: if I make a function
(or several functions for that matter) is it better to place those in a
separate script and include them, or just keep them where they are?  I have
an alumni registration script I've written (probably poorly - but it works!)
which ends up being almost 350 lines when you take out the spaces.  Now I
know that's not big, but I have a hard time debugging it when I try to make
improvements (the globals off thing), mainly because I'm not use to looking
at anything that size.  Any suggestions?

Thanks,

-Kirk


John Holmes [EMAIL PROTECTED] wrote in message
000201c1f127$18b57bd0$b402a8c0@mango">news:000201c1f127$18b57bd0$b402a8c0@mango...
 Gee, why didn't you copy all of the lists on your wonderful reply to my
 message? I'm not trying to cock up life, whatever that is. I'm just
 trying to stop people like you from wasting everyone's time. Don't send
 messages to a PHP list about an ASP programmer or learn how to write a
 decent job description that accurately describes what you're looking
 for. I'm sure other people agree with me. I should Cc: your message and
 response to all of the PHP lists you spammed to so everyone can know
 what kind of company you are running.

 v/r

 John Holmes

  -Original Message-
  From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 01, 2002 5:17 AM
  To: [EMAIL PROTECTED]
  Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap
 
  Wonderful that you have the time to reply.  Must be sitting on your
 arse
  doing fuck all. At least we are doing something. Why do we all have to
 put
  up with slobs like you who only have time to cock up life.  Surely you
  should be out marching it's May day.
 
  -Original Message-
  From: John Holmes [mailto:[EMAIL PROTECTED]]
  Sent: 01 May 2002 16:12
  To: [EMAIL PROTECTED]; 'Jacky Kenna'
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 
  I don't know what kind of company you run, but I consider this SPAM.
 You
  sent this crap out to a bunch of PHP lists and you're looking for an
 ASP
  programmer. Who cares if there are people on here that know ASP,
 that's
  not why they are on this list. If they are looking for ASP jobs,
 they'll
  subscribe to an ASP list. I wouldn't have anything to do with a
 company
  that does this. Keep you SPAM to yourself next time and stop wasting
 my
  time.
 
  v/r
 
  John Holmes
 
   -Original Message-
   From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, May 01, 2002 4:17 AM
   To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
   [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
  php-
   [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-gtk-
   [EMAIL PROTECTED]; [EMAIL PROTECTED];
  [EMAIL PROTECTED];
   [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
   [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]
   Subject: [PHP] convert access to JAVA PHP mysql Xml Soap
  
  
   Hi  We are a publishing company based in London. We have developed a
   multi-user
   MS Access contact management and bookkeeping database system which
 we
  want
   to adapt / re-write such that it can be used over the web ( ASP)
 using
   Internet
   Explorer (or similar) from any location, as our clients would like
 to
  use
   it.
  
   We are therefore looking for someone to develope or who will head a
  team
   of
   developers and
   co-ordinate this project. If you are interested in working with us
 on
   this,
   please e-mail [EMAIL PROTECTED] with a brief outline of your
   knowledge
   and experience of programming languages and I will get back to you
 as
  soon
   as possible.
  
   Jacky Kenna
   Managing Director, PDA
   0207 384 1985
   [EMAIL PROTECTED]
  
  
  
  
   --
   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] XML to HTML?!

2002-05-01 Thread Fredrik Arild Takle

Wrap into a output buffer.  ob_start, ob_get_contents

This was neat.
I did:

ob_start();
$myvar = ob_get_contents();

But it still outputs the page, can I disable that?

Regards
Fredrik



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




[PHP] PHP --help

2002-05-01 Thread Pelillo, Mark

I have two linux boxes running Apache 2.0.35 with PHP 4.2.0RC4.  Sunday I
did a bunch work from home on one system, moved to the second system and
everything was working on both systems..  This morning I modifed one section
of code on the second system work and now I don't seem to get anything to
work.  I went back to the old stuff that was working and nothing.  I have
check the old code and the updated  code on system one and it is still
working. 
 
So I went back to the basics.  I can execute phpinfo() without a
problem, but if I try to use a simple form to pass variable from an html
page to the php script, I don't get anything from the php script.
 
Here is the simple html file:
form action=scripts/insert-user.php method=GET
  table border=1 frame=box width=740 height=30
tr 
  td*First Name:
input type=text name=fn size=40
  /td
  td*Last Name: 
input type=text name=ln size=40
  /td
/tr
  /table
input type=submit value=Submit
/form

The php script has the following lines
?php
echo $fn;
echo $ln;
? 
 
 
I have tried using both POST and GET.  At least with GET I see the url as
insert-user.php?fn=markln=pelillo.  But the echo statements output
nothing.
 
 
Any thoughts??
 
Mark Pelillo
 



[PHP] Cannot add header information

2002-05-01 Thread Bo Pritchard

Warning: Cannot add header information - headers already sent by (output
started at /home/omnidevi/omnidevices-www/s-cart/form.phtml:5) in
/home/omnidevi/omnidevices-www/s-cart/shop-head.phtml on line 40

I posted this error message a few days ago and got very helpful
answers...Unfortunately I can't locate the problem in my code...I was
running this exact same code on another server and it worked fine.  I know
it's a lot to ask but can someone quickly review this 2 files to figure out
what I'm doing wrong..

many thanks




begin 666 form.phtml
M/AT;6P^#0H-CQH96%D/T*/'-T6QE(9PF]L;]V97)S='EL93Y!.FAO
M=F5R('MC;VQOCH(T8P04,P,'T-CPOW1Y;4^#0H\;65T82!H='1P+65Q
M=6EV/2)#;VYT96YT+51Y4B(-O;G1E;G0](G1E'0O:'1M;#L@8VAAG-E
M=#UW:6YD;W=S+3$R-3(B/T*/UE=$;F%M93TB1T5.15)!5$]2(B!C;VYT
M96YT/2)-:6-R;W-O9G0@1G)O;G1086=E(#0N,(^#0H\;65T82!N86UE/2)0
MF]G260B(-O;G1E;G0](D9R;VYT4%G92Y%9ET;W(N1]C=6UE;G0B/T*
M/'1I=QE/D]M;FE$979I8V4\+W1I=QE/T*/UE=$;F%M93TB36ECF]S
M;V9T($)OF1EB(8V]N=5N=#TB=PL(1E9F%U;'0B/T*/]H96%D/T*
M#0H\8F]D2!B86-K9W)O=6YD/2)H='1P.B\O;VUN:61E=FEC97,N;F5T+VEM
M86=ER]B86-K9W)O=6YD+FIP9R(;EN:STB(S P-CE#0B(=FQI;FL](B,P
M,#8Y0T(B(%L:6YK/2(C1C!!0S P(B!O;FQO860](FQE9G1PF5L;V%D26UA
M9V5S*D[('1O'!R96QO861);6%G97,H*2(^/$M+6US;F%V:6=A=EO;BTM
M/CQT86)L92!B;W)D97(](C B(-E;QP861D:6YG/2(P(B!C96QLW!A8VEN
M9STB,(=VED=](C$P,4B/CQTCX\=0^#0H\(2TM($EM86=E4F5A9'D
M4')E;]A9!38W)I'0@*]D,2YN878N'-D*2 M+3X-CQ30U))4%0@3$%.
M1U5!1T4](DIA=F%38W)I'0B/T*/$M+0T*#0IF=6YC=EO;B!T;W!N97=)
M;6%G92AAFI('L-EI9B H9]C=6UE;G0N:6UA9V5S*2![#0H)7)S;'0
M/2!N9726UA9V4H*3L-D)G-L=YSF,/2!AF[#0H)7)E='5R;B!R
MVQT.PT*7T-GT-T*9G5N8W1I;VX@=]P8VAA;F=E26UA9V5S*DPT*
M6EF(AD;V-U;65N=YI;6%G97,)B8@*'!R96QO861;%G(#T]('1R=64I
M*2![#0H)69OB H=F%R(D],#L:3QT;W!C:%N9V5);6%G97,N87)G=6UE
M;G1S+FQE;F=T:#L:2L],BDPT*0D)9]C=6UE;G1;=]P8VAA;F=E26UA
M9V5S+F%R9W5M96YTUMI75TNW)C(#T@=]P8VAA;F=E26UA9V5S+F%R9W5M
M96YTUMI*S%=.PT*0E]#0H)?0T*?0T*#0IV87(')E;]A9$9L86/2!F
M86QS93L-F9U;F-T:6]N('1O'!R96QO861);6%G97,H*2![#0H):68@*1O
M8W5M96YT+FEM86=ERDPT*0EH;VUE7W!R:79A8WEP;VQI8WE?;W9EB ]
M('1OYE=TEM86=E*)H='1P.B\O;VUN:61E=FEC97,N;F5T+VEM86=ER]H
M;VUE+7!R:79A8WEP;VQI8WE?;W9EBYG:68B*3L-D):]M95]O=F5R(#T
M=]P;F5W26UA9V4H(FAT=' Z+R]O;6YI95V:6-ERYN970O:6UA9V5S+VAO
M;64M;W9EBYG:68B*3L-D)V-AG1?U]C87)T7V]V97(/2!T;W!N97=)
M;6%G92@B:'1T#HO+V]M;FED979I8V5S+FYE=]I;6%G97,OV-AG0MRUC
M87)T7V]V97(N9VEF(BD[#0H)6%B;W5T=7-?;W9EB ]('1OYE=TEM86=E
M*)H='1P.B\O;VUN:61E=FEC97,N;F5T+VEM86=ER]A8F]U='5S+6]V97(N
M9VEF(BD[#0H)6-UW1O;65RW5P]R=%]O=F5R(#T@=]P;F5W26UA9V4H
M(FAT=' Z+R]O;6YI95V:6-ERYN970O:6UA9V5S+V-UW1O;65RW5P]R
M=UO=F5R+F=I9B(I.PT*0EPFEV86-Y]L:6-Y7V]V97(/2!T;W!N97=)
M;6%G92@B:'1T#HO+V]M;FED979I8V5S+FYE=]I;6%G97,O')I=F%C7!O
M;EC2UO=F5R+F=I9B(I.PT*0ES7V-AG1?;W9EB ]('1OYE=TEM86=E
M*)H='1P.B\O;VUN:61E=FEC97,N;F5T+VEM86=ER]S+6-AG0M;W9EBYG
M:68B*3L-D)V-AG1?')I=F%C7!O;EC5]O=F5R(#T@=]P;F5W26UA
M9V4H(FAT=' Z+R]O;6YI95V:6-ERYN970O:6UA9V5S+W-C87)T+7!R:79A
M8WEP;VQI8WE?;W9EBYG:68B*3L-D)V-AG1?:]M95]O=F5R(#T@=]P
M;F5W26UA9V4H(FAT=' Z+R]O;6YI95V:6-ERYN970O:6UA9V5S+W-C87)T
M+6AO;65?;W9EBYG:68B*3L-D)')E;]A9$9L86/2!TG5E.PT*7T-
MGT-T*+R\@+2T^#0H\+U-#4DE05#X\(2TM($5N9!0F5L;V%D(%-CFEP
M= M+3X-CQ404),12!724142#TV,C0@0D]21$52/3 0T5,3%!!1$1)3D]
M,!#14Q,4U!!0TE.1STP/T*3Q44CX-D)/%1$(%)/5U-004X],CX-D)
M3Q!($A2148](FAT=' Z+R]O;6YI95V:6-ERYN970B#0H)0D)3TY-3U53
M14]615(](G1O-H86YG94EM86=ER@G:]M92L(=H='1P.B\O;VUN:61E
M=FEC97,N;F5T+VEM86=ER]H;VUE+6]V97(N9VEF)RP)W-C87)T,#$V)RP
M)VAT=' Z+R]O;6YI95V:6-ERYN970O:6UA9V5S+W-C87)T+6AO;65?;W9E
MBYG:68G*3LF5T=7)N('1R=64[(T*0D)4].34]54T5/550](G1O-H
M86YG94EM86=ER@G:]M92L(=H='1P.B\O;VUN:61E=FEC97,N;F5T+VEM
M86=ER]H;VUE+F=I9BL(=S8V%R=# Q-BL(=H='1P.B\O;VUN:61E=FEC
M97,N;F5T+VEM86=ER]S8V%R=TQ-BYG:68G*3LF5T=7)N('1R=64[(CX-
MD)0D\24U'($Y!344](FAO;64B(%-20STB:'1T#HO+V]M;FED979I8V5S
M+FYE=]I;6%G97,O:]M92YG:68B(%=)1%1(/3(W-!(14E'2%0]-38@0D]2
M1$52/3 ^/]!/CPO5$0^#0H)3Q41!#3TQ34$%./34^#0H)0D\24U'($Y!
M344](G-C87)T(B!34D,](FAT=' Z+R]O;6YI95V:6-ERYN970O:6UA9V5S
M+W-C87)T+F=I9B(5TE$5$@],S4P($A%24=(5#TR-CX\+U1$/T*0D\5$0^
M#0H)0D\24U'(%-20STB:'1T#HO+V]M;FED979I8V5S+FYE=]I;6%G97,O
MW!A8V5R+F=I9B(5TE$5$@],2!(14E'2%0],C8^/]41#X-D\+U12/T*
M3Q44CX-D)/%1$(%)/5U-004X],SX-D)3Q)344U)#/2)H='1P.B\O
M;VUN:61E=FEC97,N;F5T+VEM86=ER]S8V%R=TP-RYG:68B(%=)1%1(/3$P
M($A%24=(5#TV-#X\+U1$/T*0D\5$0@4D]74U!!3CTR/T*0D)/$$@2%)%
M1CTB:'1T#HO+V]M;FED979I8V5S+FYE=]A8F]U=YH=UL(T*0D)4].
M34]54T5/5D52/2)T;W!C:%N9V5);6%G97,H)V%B;W5T=7,G+ G:'1T#HO
M+V]M;FED979I8V5S+FYE=]I;6%G97,O86)O=71URUO=F5R+F=I9BI.R!R
M971UFX@=')U93LB#0H)0D)3TY-3U5314]55#TB=]P8VAA;F=E26UA9V5S
M*=A8F]U='5S)RP)VAT=' Z+R]O;6YI95V:6-ERYN970O:6UA9V5S+V%B
M;W5T=7,N9VEF)RD[(')E='5R;B!TG5E.R(^#0H)0D)/$E-1R!.04U%/2)A
M8F]U='5S(B!34D,](FAT=' Z+R]O;6YI95V:6-ERYN970O:6UA9V5S+V%B
M;W5T=7,N9VEF(B!724142#TV,!(14E'2%0],S0D]21$52/3 ^/]!/CPO
M5$0^#0H)3Q41!23U=34$%./3(^#0H)0D\02!(4D5/2)H='1P.B\O;VUN
M:61E=FEC97,N;F5T+W-U'!OG0N:'1M;(-D)0E/3DU/55-%3U9%4CTB
M=]P8VAA;F=E26UA9V5S*=C=7-T;VUEG-U'!OG0G+ G:'1T#HO+V]M
M;FED979I8V5S+FYE=]I;6%G97,O8W5S=]M97)S=7!P;W)T+6]V97(N9VEF

Re: [PHP] PHP --help

2002-05-01 Thread 1LT John W. Holmes

Use $_GET[fn] and $_GET[ln], or $_POST[], depending on your action.

Does anybody read the release notes for a product before you download and
install it? I'm just going to save a standard message that covers this
because I see questions like this continuing until everybody upgrades.

---John Holmes...

- Original Message -
From: Pelillo, Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 6:13 PM
Subject: [PHP] PHP --help


 I have two linux boxes running Apache 2.0.35 with PHP 4.2.0RC4.  Sunday I
 did a bunch work from home on one system, moved to the second system and
 everything was working on both systems..  This morning I modifed one
section
 of code on the second system work and now I don't seem to get anything to
 work.  I went back to the old stuff that was working and nothing.  I have
 check the old code and the updated  code on system one and it is still
 working.

 So I went back to the basics.  I can execute phpinfo() without a
 problem, but if I try to use a simple form to pass variable from an html
 page to the php script, I don't get anything from the php script.

 Here is the simple html file:
 form action=scripts/insert-user.php method=GET
   table border=1 frame=box width=740 height=30
 tr
   td*First Name:
 input type=text name=fn size=40
   /td
   td*Last Name:
 input type=text name=ln size=40
   /td
 /tr
   /table
 input type=submit value=Submit
 /form

 The php script has the following lines
 ?php
 echo $fn;
 echo $ln;
 ?


 I have tried using both POST and GET.  At least with GET I see the url as
 insert-user.php?fn=markln=pelillo.  But the echo statements output
 nothing.


 Any thoughts??

 Mark Pelillo




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




[PHP] Cannot add header information

2002-05-01 Thread 1LT John W. Holmes

You CANNOT send anything to the browser before you set a cookie or start a session. 
You are displaying most of an HTML file,  headers, javascript, HTML, etc, and then 
trying to include() a file that sets a cookie. Not going to work. 

---John Holmes...

Warning: Cannot add header information - headers already sent by (output
started at /home/omnidevi/omnidevices-www/s-cart/form.phtml:5) in
/home/omnidevi/omnidevices-www/s-cart/shop-head.phtml on line 40

I posted this error message a few days ago and got very helpful
answers...Unfortunately I can't locate the problem in my code...I was
running this exact same code on another server and it worked fine.  I know
it's a lot to ask but can someone quickly review this 2 files to figure out
what I'm doing wrong..

many thanks



RE: [PHP] Cannot add header information

2002-05-01 Thread Ford, Mike [LSS]

 -Original Message-
 From: Bo Pritchard [mailto:[EMAIL PROTECTED]]
 Sent: 01 May 2002 14:29
 
 Warning: Cannot add header information - headers already sent 
 by (output
 started at /home/omnidevi/omnidevices-www/s-cart/form.phtml:5) in
 /home/omnidevi/omnidevices-www/s-cart/shop-head.phtml on line 40
 
 I posted this error message a few days ago and got very helpful
 answers...Unfortunately I can't locate the problem in my code...I was
 running this exact same code on another server and it worked 
 fine.  I know
 it's a lot to ask but can someone quickly review this 2 files 
 to figure out
 what I'm doing wrong..

Well, I opened form.phtml, and the very first line in it is:

html

This starts the output of the page that the error message is complaining of, so from 
here on you cannot do *anything* that attempts to output headers -- this includes 
using cookies or sessions or anything else that relies on headers.

It looks to me like you need to do some *serious* re-ordering of your code, given that 
the offending line is over 250 lines away and inside an include file to boot!!

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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




RE: [PHP] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread Steve Bradwell

I agree John, what kind of intelligent person would advertise a M$ job on 
a PHP list, be gone company man.

-Steve.

-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 11:45 AM
To: [EMAIL PROTECTED]
Cc: 'PHP General'; [EMAIL PROTECTED]
Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap


Gee, why didn't you copy all of the lists on your wonderful reply to my
message? I'm not trying to cock up life, whatever that is. I'm just
trying to stop people like you from wasting everyone's time. Don't send
messages to a PHP list about an ASP programmer or learn how to write a
decent job description that accurately describes what you're looking
for. I'm sure other people agree with me. I should Cc: your message and
response to all of the PHP lists you spammed to so everyone can know
what kind of company you are running. 

v/r

John Holmes

 -Original Message-
 From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 5:17 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 Wonderful that you have the time to reply.  Must be sitting on your
arse
 doing fuck all. At least we are doing something. Why do we all have to
put
 up with slobs like you who only have time to cock up life.  Surely you
 should be out marching it's May day.
 
 -Original Message-
 From: John Holmes [mailto:[EMAIL PROTECTED]]
 Sent: 01 May 2002 16:12
 To: [EMAIL PROTECTED]; 'Jacky Kenna'
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 
 I don't know what kind of company you run, but I consider this SPAM.
You
 sent this crap out to a bunch of PHP lists and you're looking for an
ASP
 programmer. Who cares if there are people on here that know ASP,
that's
 not why they are on this list. If they are looking for ASP jobs,
they'll
 subscribe to an ASP list. I wouldn't have anything to do with a
company
 that does this. Keep you SPAM to yourself next time and stop wasting
my
 time.
 
 v/r
 
 John Holmes
 
  -Original Message-
  From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 01, 2002 4:17 AM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
 php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-gtk-
  [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED];
  [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-
  [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
  Subject: [PHP] convert access to JAVA PHP mysql Xml Soap
 
 
  Hi  We are a publishing company based in London. We have developed a
  multi-user
  MS Access contact management and bookkeeping database system which
we
 want
  to adapt / re-write such that it can be used over the web ( ASP)
using
  Internet
  Explorer (or similar) from any location, as our clients would like
to
 use
  it.
 
  We are therefore looking for someone to develope or who will head a
 team
  of
  developers and
  co-ordinate this project. If you are interested in working with us
on
  this,
  please e-mail [EMAIL PROTECTED] with a brief outline of your
  knowledge
  and experience of programming languages and I will get back to you
as
 soon
  as possible.
 
  Jacky Kenna
  Managing Director, PDA
  0207 384 1985
  [EMAIL PROTECTED]
 
 
 
 
  --
  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

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




[PHP] Re: Announcement: Smarty template engine 2.1.0 released

2002-05-01 Thread Yasuo Ohgaki

Monte Ohrt wrote:
 Homepage:
 http://www.phpinsider.com/php/code/Smarty/
 

I don't like most template implementations, but
Smarty is great.

--
Yasuo Ohgaki



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




[PHP] I can't seem to get the mkdir function to work properly

2002-05-01 Thread Andy F.

I keep getting Permission denied, however the directory that I'm trying to
create in has 777 permisions.

Anyone?




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




[PHP] file() and macintosh line break

2002-05-01 Thread Rodrigo Peres

Hi list,

I'm in a problem that is driving me crazy!!! I want open a file and puts 
each line into an array, but this files was created in macintosh!! so 
the file() can't recognize the end line and only outputs 1 element in 
array!! How can I solve it. I tried to fread() the file and 
eregi_replace the line breaks, it worked, but now I don't know how to 
use this to create the array!

Thank's in advance

Rodrigo


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




Re: [PHP] Help! Transparency using GD with PNGs!

2002-05-01 Thread olinux

I dont think transparent PNG's are possible with GD 

Maybe v2.0 will have something?

olinux


--- Cam [EMAIL PROTECTED] wrote:
 I've got PHP 4.2 and what I believe to be the newest
 version of the GD
 library up and running..  For some reason, my PNG
 images do not preserve
 their transparencies but rather have a white
 background.  I do not have this
 problem on my production server, so this has
 something to do with my local
 server's configuration.  Anyone have any suggestions
 as to how I might
 correct this?
 
 Thanks,
 Cam
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




[PHP] virus scanning with PHP

2002-05-01 Thread olinux

Anyone ever run virus scans via PHP exec command?

Is it possible? I am trying to persuade the company to
go with Qmail and this would be a killer benefit as
we've spent the past 2 days trying to rid klez.

Thanks much,
olinux

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




RE: [PHP] file() and macintosh line break

2002-05-01 Thread Darren Gamble

Good day,

Calm down, the excessive !'s are a bit unnecessary.

One possible solution is to read the entire thing into one string, and then
use the split or preg_split function on the \r against it.  This will give
you an array with one line per entry.


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


 -Original Message-
 From: Rodrigo Peres [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 8:55 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] file() and macintosh line break
 
 
 Hi list,
 
 I'm in a problem that is driving me crazy!!! I want open a 
 file and puts 
 each line into an array, but this files was created in macintosh!! so 
 the file() can't recognize the end line and only outputs 1 element in 
 array!! How can I solve it. I tried to fread() the file and 
 eregi_replace the line breaks, it worked, but now I don't know how to 
 use this to create the array!
 
 Thank's in advance
 
 Rodrigo
 
 
 -- 
 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




[PHP] File uploading fails

2002-05-01 Thread Tim Decker

I have searched high and low and done everything
recommended generically and yet am still having
problems uploading files. My script is as follows: 
BODY 
?php 
error_reporting(E_ALL); 
echo phpinfo(); 
echo $file_name; 
echo $HTTP_POST_FILES['file']['name']; 
if (isset($file)){ 
echo Successfully uploaded , $file_name, BR\n; 
} 
? 
FORM ACTION=addimage.php METHOD=POST
enctype=multipart/form-data 
INPUT TYPE=FILE NAME=fileBR 
INPUT TYPE=SUBMIT 
/FORM 
/BODY 

Output is as follows: 

Warning: Undefined variable: file_name in addimage.php
on line 5 

Warning: Undefined index: file in addimage.php on line
6 

I get this message with all the variations of file
upload testing. 

FYI I'm trying to upload a 160K jpg file for testing. 

Using Apache and Linux server. WIN IE Client. 

Help would be greatly appreciated. 

TIA, 
Tim 
unka_timmyATyahoo.com 


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




Re: [PHP] File uploading fails

2002-05-01 Thread Pushkar Pradhan

You haven't defined $file_name before trying to echo it, I think you'll
have to create it using $HTTP_POST_...['file'] and HTT...['name']
Also check your php.ini to see if file uploads are allowed and if yes the
max. limit.
 I have searched high and low and done everything
 recommended generically and yet am still having
 problems uploading files. My script is as follows:
 BODY
 ?php
 error_reporting(E_ALL);
 echo phpinfo();
 echo $file_name;
 echo $HTTP_POST_FILES['file']['name'];
 if (isset($file)){
 echo Successfully uploaded , $file_name, BR\n;
 }
 ?
 FORM ACTION=addimage.php METHOD=POST
 enctype=multipart/form-data
 INPUT TYPE=FILE NAME=fileBR
 INPUT TYPE=SUBMIT
 /FORM
 /BODY

 Output is as follows:

 Warning: Undefined variable: file_name in addimage.php
 on line 5

 Warning: Undefined index: file in addimage.php on line
 6

 I get this message with all the variations of file
 upload testing.

 FYI I'm trying to upload a 160K jpg file for testing.

 Using Apache and Linux server. WIN IE Client.

 Help would be greatly appreciated.

 TIA,
 Tim
 unka_timmyATyahoo.com


 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com

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


-Pushkar S. Pradhan


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




[PHP] Re: I can't seem to get the mkdir function to work properly

2002-05-01 Thread Andy F.

Here's the code I used

$name = FolderName;

mkdir(test/$name, 0700);


Andy F. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I keep getting Permission denied, however the directory that I'm trying to
 create in has 777 permisions.

 Anyone?






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




[PHP] verify file before linking to another

2002-05-01 Thread Jas

I am wondering if there is a good tutorial or example of code on how to
verify that a page has been hit before linking to the next.  For example say
you have a form, the form once all fields have been filled links to a
confirmation page then from there it links to a thank you page which inserts
data to a text file, how can one verify that someone is not just typing in
the name of the last page and therefore inserting a blank entry into the
text file?  Any help would be great.
Thanks in advance,
jas



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




Re: [PHP] File uploading fails

2002-05-01 Thread 1LT John W. Holmes

$HTTP_POST_FILES/$_FILES is provided to contain the uploaded file
information.

The contents of $HTTP_POST_FILES are as follows. Note that this assumes the
use of the file upload name 'userfile', as used in the example script above:


  $HTTP_POST_FILES['userfile']['name']
  The original name of the file on the client machine.

  $HTTP_POST_FILES['userfile']['type']
  The mime type of the file, if the browser provided this information. An
example would be image/gif.

  $HTTP_POST_FILES['userfile']['size']
  The size, in bytes, of the uploaded file.

  $HTTP_POST_FILES['userfile']['tmp_name']
  The temporary filename of the file in which the uploaded file was stored
on the server.


  Note: PHP 4.1.0 or later supports a short track variable $_FILES. PHP 3
does not support $HTTP_POST_FILES.

When register_globals is turned on in php.ini the available variables are as
follows. Note that the following variable names assume the use of the file
upload name 'userfile', as used in the example script above:


  a.. $userfile - The temporary filename in which the uploaded file was
stored on the server machine.

  b.. $userfile_name - The original name or path of the file on the sender's
system.

  c.. $userfile_size - The size of the uploaded file in bytes.

  d.. $userfile_type - The mime type of the file if the browser provided
this information. An example would be image/gif.

Note that the $userfile part of the above variables is whatever the name
of the input field of type=file is in the upload form. In the above
upload form example, we chose to call it userfile.

  Note: register_globals = On is not recommended for security and
performance reason.

Love that manual,

---John Holmes...

- Original Message -
From: Tim Decker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 01, 2002 11:13 AM
Subject: [PHP] File uploading fails


 I have searched high and low and done everything
 recommended generically and yet am still having
 problems uploading files. My script is as follows:
 BODY
 ?php
 error_reporting(E_ALL);
 echo phpinfo();
 echo $file_name;
 echo $HTTP_POST_FILES['file']['name'];
 if (isset($file)){
 echo Successfully uploaded , $file_name, BR\n;
 }
 ?
 FORM ACTION=addimage.php METHOD=POST
 enctype=multipart/form-data
 INPUT TYPE=FILE NAME=fileBR
 INPUT TYPE=SUBMIT
 /FORM
 /BODY

 Output is as follows:

 Warning: Undefined variable: file_name in addimage.php
 on line 5

 Warning: Undefined index: file in addimage.php on line
 6

 I get this message with all the variations of file
 upload testing.

 FYI I'm trying to upload a 160K jpg file for testing.

 Using Apache and Linux server. WIN IE Client.

 Help would be greatly appreciated.

 TIA,
 Tim
 unka_timmyATyahoo.com


 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com

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




[PHP] MySQL to Excel using PHP

2002-05-01 Thread Jay Blanchard

Howdy all!

Some of my users want Excel reports from MySQL databases, so I have done the
following with PHP;

!--BEGIN CODE--
?
header(Content-Type:  application/x-excel);
header(Content-Disposition: inline;
filename=\excel.xls\);

header(Expires: 0);

header(Cache-Control: must-revalidate, post-check=0,
pre-check=0);

//connect to and select database
if(!($dbconnect = mysql_pconnect(127.0.0.1, user, password))){
print(Failed to connect to database!\n);
exit();
}
if(!mysql_select_db(rcr, $dbconnect)){
print(Failed to select database!\n);
exit();
}
//query
$qrecord = SELECT DISTINCT RecordID ;
$qrecord .= FROM tblClass10 ;
?

table
tr
td/td
?
while($dbrow = mysql_fetch_object($dbrecord)){
print(td);
print($dbrow-RecordID);
print(/td\n);
}
?
/tr
/table
!--END CODE--

If I name the file with a .xls extension it displays the code in the excel
worksheet in the browser. If I name the file with the .php extension it
opens Excel seperately, gives me a file download option (I click 'Open') and
then asks me to tell it what created the file, so I pick Excel. Then the
data is displayed  properly in the Excel worksheet, outside of the browser.
I want the file to open an Excel worksheet in the browser (IE, on an
Intranet). Is there something I am missing?

Thanks!

Jay



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




[PHP] Re: Help! Transparency using GD with PNGs!

2002-05-01 Thread Philip Hallstrom

You might look at the ImageColorTransparent function... good luck


On Tue, 30 Apr 2002, Cam wrote:

 I've got PHP 4.2 and what I believe to be the newest version of the GD
 library up and running..  For some reason, my PNG images do not preserve
 their transparencies but rather have a white background.  I do not have this
 problem on my production server, so this has something to do with my local
 server's configuration.  Anyone have any suggestions as to how I might
 correct this?

 Thanks,
 Cam



 --
 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] virus scanning with PHP

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, olinux wrote:
 Anyone ever run virus scans via PHP exec command?
 
 Is it possible? I am trying to persuade the company to
 go with Qmail and this would be a killer benefit as
 we've spent the past 2 days trying to rid klez.

I don't see the advantage of bringing PHP into the mix. There are plenty 
of pre-existing qmail virus scanning solutions freely available (well, the 
virus definitions aren't always freely available, but the glue code is).

miguel


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




Re: [PHP] MySQL to Excel using PHP

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, Jay Blanchard wrote:
 If I name the file with a .xls extension it displays the code in the
 excel worksheet in the browser. If I name the file with the .php
 extension it opens Excel seperately, gives me a file download option (I
 click 'Open') and then asks me to tell it what created the file, so I
 pick Excel. Then the data is displayed properly in the Excel worksheet,
 outside of the browser. I want the file to open an Excel worksheet in
 the browser (IE, on an Intranet). Is there something I am missing?

Nope. IE is a little perverse about how it decides which viewer to use. So 
just give it a name ending with .xls, or tack on a /whatever.xls to the 
end of the link.

miguel


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




Re: [PHP] I can't seem to get the mkdir function to work properly

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, Andy F. wrote:
 I keep getting Permission denied, however the directory that I'm trying to
 create in has 777 permisions.

Apache also needs at least x permission to each of the enclosing folders, 
all the way up to /.

miguel


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




[PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread Daniel Negron/KBE

Kinda off topic here, just checking to see If I am on the right track with
this

input type=checkbox name=abb value=?php echo $myrow['abb'] ?

the result should be :

IF the record contains the field abb and it has a value of 1 then it will
be checked off for viewing.

Brainfarting all day !!


Thank You



Daniel Negrón
Lotus Notes Administrator / Developer
KB Electronics, Inc.
954.346.4900x122
http://www.kbelectronics.com




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




Re: [PHP] XML to HTML?!

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, Fredrik Arild Takle wrote:
Wrap into a output buffer.  ob_start, ob_get_contents
 
 This was neat.
 I did:
 
 ob_start();
 $myvar = ob_get_contents();
 
 But it still outputs the page, can I disable that?

Read the output buffering section of the manual. Look for the word flush.

miguel


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




Re: [PHP] Retrieving name of error_log file

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, Neil Freeman wrote:
 How do you obtain the value of 'error_log' (set within a .htaccess
 file). Is there a $HTTP_x_VARS array available which contains this
 information?

Nope. You can use phpinfo() to see what most of the predefined server 
variables are. In your case you'll have to parse the httpd.conf file 
yourself.

miguel


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




[PHP] session variables and classes?

2002-05-01 Thread John Ngo

does anyone know if a session variable set within a class is accessible
outside the class and by other pages?



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




Re: [PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, Daniel Negron/KBE wrote:
 Kinda off topic here, just checking to see If I am on the right track with
 this
 
 input type=checkbox name=abb value=?php echo $myrow['abb'] ?
 
 the result should be :
 
 IF the record contains the field abb and it has a value of 1 then it will
 be checked off for viewing.

http://www.w3.org/TR/REC-html32#fields

input type=checkbox name=abb value=1 checked
input type=checkbox name=abb value=1

miguel


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




[PHP] PHP-GTK Question

2002-05-01 Thread Sebastian A.

Hello,

I have recently installed PHP-GTK with any problems, however I cannot get
it to work. When I click on the php_win shortcut I get an error saying:
Usage: php_win path to php-gtk script

Does anyone know how I can fix this and run my PHP-GTK scripts?


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




RE: [PHP] session variables and classes?

2002-05-01 Thread Jay Blanchard

[snip]
does anyone know if a session variable set within a class is accessible
outside the class and by other pages?
[/snip]

I have not tested this, but I do use sessions quite a bit. All session
variables are registered as global variables and therefore should be
available to other processes and pages. You could perform an easy test by
creating a class containing a registered session variable and attempt to
call that variable from another page.

Jay Blanchard



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




Re: [PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread 1LT John W. Holmes

It will only be checked if you put CHECKED in your HTML.

if($myrow['abb'] == 1) { echo  checked ; }

Add that into your input element.

---John Holmes...

- Original Message -
From: Daniel Negron/KBE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 01, 2002 1:04 PM
Subject: [PHP] Checkbox Initial Value based on record in db


Kinda off topic here, just checking to see If I am on the right track with
this

input type=checkbox name=abb value=?php echo $myrow['abb'] ?

the result should be :

IF the record contains the field abb and it has a value of 1 then it will
be checked off for viewing.

Brainfarting all day !!


Thank You



Daniel Negrón
Lotus Notes Administrator / Developer
KB Electronics, Inc.
954.346.4900x122
http://www.kbelectronics.com




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




[PHP] Variable Help.

2002-05-01 Thread Randum Ian

Hi all,

I want to link to a page like this:

http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002

How do I get the information into a script?

Cheers, Ian.
---
Randum Ian
DJ / Reviewer / Webmaster, DancePortal (UK) Limited
[EMAIL PROTECTED]
http://www.danceportal.co.uk
DancePortal.co.uk - Global dance music media


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




[PHP] Re: Variable Help.

2002-05-01 Thread Joshua E Minnie

Try using a link like this instead:

http://www.danceportal.co.uk/charts.php?date=wk001-fri-18-jan-2002

Then you can use the variable $date and parse through the variable how you
need it.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847

Don't work for recognition, but always do work worthy of recognition.


Randum Ian [EMAIL PROTECTED] wrote in message
004901c1f137$5ca691c0$b1f2b5ac@randum">news:004901c1f137$5ca691c0$b1f2b5ac@randum...
 Hi all,

 I want to link to a page like this:

 http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002

 How do I get the information into a script?

 Cheers, Ian.
 ---
 Randum Ian
 DJ / Reviewer / Webmaster, DancePortal (UK) Limited
 [EMAIL PROTECTED]
 http://www.danceportal.co.uk
 DancePortal.co.uk - Global dance music media




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




Re: [PHP] Variable Help.

2002-05-01 Thread Stuart Dallas

On 1 May 2002 at 18:39, Randum Ian wrote:
 I want to link to a page like this:
 
 http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002
 
 How do I get the information into a script?

The variable $_SERVER[QUERY_STRING] will contain wk0001-fri-18-jan-2002.

-- 
Stuart

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




RE: [PHP] Variable Help.

2002-05-01 Thread Jay Blanchard

[snip]
I want to link to a page like this:

http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002

How do I get the information into a script?
[snip]

Since you want to pass 'wk0001-fri-18-jan-2002' as the variable value your
URL will need to look like this

http://www.danceportal.co.uk/charts.php?varname=wk0001-fri-18-jan-2002

varname=wk0001-fri-18-jan-2002 where varname is the variable name and
wk0001-fri-18-jan-2002 is the variable value.

In the next page the value will be available in the variable $varname

Jay Blanchard



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




RE: [PHP] Variable Help.

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, Jay Blanchard wrote:
 http://www.danceportal.co.uk/charts.php?varname=wk0001-fri-18-jan-2002
 
 varname=wk0001-fri-18-jan-2002 where varname is the variable name and
 wk0001-fri-18-jan-2002 is the variable value.
 
 In the next page the value will be available in the variable $varname

Or, if you have a recent PHP installation with default parameters, it will 
show up as $_GET['varname'].

miguel


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




[PHP] RE:[PHP-GTK Question]

2002-05-01 Thread Kirk Babb

This has been a hot topic on the PHP-GTK discussion list.

Click here
[EMAIL PROTECTED]

just send it blank, wait for the confirmation.  You will find that a much
better place to post this type of question.  You can also request the
archives for all that you've missed.

Good Luck -see you there (I'm doing php-gtk on W2K)

-Kirk




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




Re: [PHP] PHP --help

2002-05-01 Thread CC Zona

In article 002b01c1f115$7ae52790$2f7e3393@TB447CCO3,
 [EMAIL PROTECTED] (1lt John W. Holmes) wrote:

 Use $_GET[fn] and $_GET[ln], or $_POST[], depending on your action.
 
 Does anybody read the release notes for a product before you download and
 install it? I'm just going to save a standard message that covers this
 because I see questions like this continuing until everybody upgrades.

Since there are still people using PHP3, that could be a very looong 
time.

-- 
CC

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




[PHP] PHP and Log Analyzers

2002-05-01 Thread Fearless Froggie

Because of the way I'm including files and passing
variables on the url I'm finding it difficult to get
the information I need from my log analyzer (I'm using
an older version of Web Trends). I thought I'd email
the list and see if anybody else has had the same
problem and has found a solution.

On my website I have one main file that I use...

1) to bring in dynamic information from the database
(I just add the article id information to the url . .
. ie, index.php3?article_id=12category_id=44)

2) or to include php files or html files. I just add
the name of the html or php file to the url . . . ie,
index.php3?file_name=a_php_form.php3. 

That way I only need to update index.php3 anytime
the layout of the site changes. 

The log analyser will count
index.php3?article_id=12category_id=44 as a
separate page than
index.php3?file_name=a_php_form.php3 which is great
-- they are separate content areas afterall.

The problem is that in some cases I am also passing
form information on the URL  for example
index.php3?file_name=a_php_form.php3name=bobstreet=broadway.
Now when I run the log analyzer it will list
index.php3?file_name=a_php_form.php3name=bobstreet=broadway
as a separate page than
index.php3?file_name=a_php_form.php3name=judystreet=mainstreet.
Ooops that's a problem cause they are the same content
area and now I'm ending up with 5 zillion separate
scores in the log analyzer for them. I could use a
cookie to save that form information, but I'm hoping
to avoid it.

It would be nice if there were a log analyzer
available that you could just type part of a url into,
for example index.php3?file_name=a_php_form.php3,
and then get a score for any url containing that
phrase. Or perhaps a program that would parse the log
file into IP Address / Date / Time / HTTP Request.
Then I could play around with it in a spreadsheet
program.

I'm sure one day down the road I'll be looking back at
this problem and realize I missed something really
obvious, but for now does anybody have any bright
ideas?

Rita Mikusch

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




Re: [PHP] verify file before linking to another

2002-05-01 Thread Jason Wong

On Wednesday 01 May 2002 23:45, Jas wrote:
 I am wondering if there is a good tutorial or example of code on how to
 verify that a page has been hit before linking to the next.  For example
 say you have a form, the form once all fields have been filled links to a
 confirmation page then from there it links to a thank you page which
 inserts data to a text file, how can one verify that someone is not just
 typing in the name of the last page and therefore inserting a blank entry
 into the text file?  Any help would be great.

With php you can do all that using a single page. Rough outline:

if (no form data submitted) {
  display_form(); }
else if (not confirm) {
  display_confirmation(); }
else {
  display_thankyou();
}

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
There's no trick to being a humorist when you have the whole government
working for you.
-- Will Rogers
*/

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




[PHP] php/.htaccess/.htpasswd

2002-05-01 Thread Kelly Meeks

Is is possible to use php to admin a password file used by a .htaccess file?

I know that sometimes it is easier/more robust to manage password protection via 
sessions/database, but I've got a client that wants to use a .htaccess file.

How do you deal with the encryption of the passwords, etc?

I appreciate any guidance,

Kelly





[PHP] RE: MySQL to Excel using PHP More Questions (Pivot Tables)

2002-05-01 Thread Jay Blanchard

[snip]
/path/to/php_to_excel.php/excel.xls
[/snip]

OK, that solves that problem and is easy to implement. The problem I have
now is creating pivot tables from the information. I'll use my previous
example;

SELECT RecordID, RecordDate, count(*) AS Quantity
FROM tblFOO
Group By RecordID, RecordDate

It returns;
+--++--+
| RecordID | RecordDate | Quantity |
+--++--+
| 100101   | 2002-03-21 | 6675 |
| 100101   | 2002-03-22 | 6794 |
| 100101   | 2002-03-23 | 2916 |
| 100101   | 2002-03-24 | 1215 |
| 100101   | 2002-03-25 | 6152 |
| 100101   | 2002-03-26 | 5398 |
+--++--+

as expected (Only a subset here, there are hundreds of rows). I want to
place this data like this in an Excel table (bad ascii art example to
follow);

+++++
| RecordID   | 100101 | 100120 | 100131 |
+++++
| Date   ||||
+++++
| 2002-03-01 || 12 | 130101 |
+++++
| 2002-03-21 |   6675 ||   1113 |
+++++
| 2002-03-22 |   6794 |287 |  29045 |
+++++
| 2002-03-23 |   2916 |  6 | 233427 |
+++++

RecordID along the top row, dates down the side, quantities at the
intersection that they belong.

Importing the original table into Excel is no big deal, but getting the
table to pivot form is a nasty bit of business.

I did run seperate queries for RecordID and did a while loop to place them
as column heads, likewise with RecordDate to place in the first column of
each row. Could I write the query out to an array and then place the values
properly? I am at a loss here.

Thanks!

Jay Blanchard



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




Re: [PHP] Re: PHP Editors

2002-05-01 Thread Liam Gibbs

Thanks to everyone for your suggestions. I went with
EditPlus 2. The project features, easy access to all
files, and directory-wide search-and-replace
functionality are what hooked me. I'm still looking
around, though, so if anyone has any other
suggestions, let me know.

The Zend product looks nice, but tell me I have a
six-hour download time (?!). I have a slow connection,
okay...? :) Stupid dialups. I'll download it first
thing when I have six hours to spend.

The big disappointment was QaDRAM Studio, which was so
buggy and unstable, it only took me until I tried to
create a project (the first thing I did upon loading
the software) before it crashed my entire system and
forced me to reboot. Trying to uninstall it is
impossible, as well, since when I try to repair,
remove, or modify it, it proceeds to tell me that it
can't do any of these on software that isn't
installed. Go figure, since I installed it about five
minutes prior. I stayed away from this after about
thirty seconds. I can only promise these results in
Win98; any other system, install at your own risk.


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




Re: [PHP] Variable Help.

2002-05-01 Thread J Smith


Even better would be to write the URL as

http://www.example.com/charts.php/wk0001-etc

and look in $_SERVER[PATH_INFO]. This way, you can do without the ? and 
have a search engine-friendly URL.

J


Stuart Dallas wrote:

 On 1 May 2002 at 18:39, Randum Ian wrote:
 I want to link to a page like this:
 
 http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002
 
 How do I get the information into a script?
 
 The variable $_SERVER[QUERY_STRING] will contain
 wk0001-fri-18-jan-2002.
 


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




Re: [PHP] Re: PHP Editors

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, Liam Gibbs wrote:
 Thanks to everyone for your suggestions. I went with EditPlus 2. The
 project features, easy access to all files, and directory-wide
 search-and-replace functionality are what hooked me. I'm still looking
 around, though, so if anyone has any other suggestions, let me know.

When forced to use Windows, I always use TextPad, which has PHP-specific 
syntax highlighting, multifile search/replace, and basically just provides 
any editor feature you think you might need as long as you look hard 
enough. Wicked fast too.

It's no BBEdit, but what can you do?

miguel


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




Re: [PHP] Variable Help.

2002-05-01 Thread Miguel Cruz

On Wed, 1 May 2002, J Smith wrote:
 Even better would be to write the URL as
 
 http://www.example.com/charts.php/wk0001-etc
 
 and look in $_SERVER[PATH_INFO]. This way, you can do without the ? and 
 have a search engine-friendly URL.

...and all your relative URLs get broken so you have to either have an 
implementation-specific BASE HREF or use (ugh) absolute URLs.

miguel


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




[PHP] PGP and other encryptions methods for PHP

2002-05-01 Thread Ron Dyck

I need to encrypt data in an application then mail it to a recipient where
the email client must decrypt using a private key. The recipient would be
using MS Outlook or another email client perhaps Eudora. What encryption
techonologies are best for this?

I had a brief look at OpenPGP but not sure of how well that integrates with
PHP.

Any help or tips from anyones who's done some work with this would be
appreciated.

===
  Ron Dyck
  WebbTech
  www.webbtech.net




Re: [PHP] PHP Editors

2002-05-01 Thread Cameron Bales .:.

Does anybody know of any PHP project editors,
something that will group together all the PHP, INC,
HTML, CSS files together into one logical project?
Preferrably freeware/shareware, obviously.

Both the new Dreamweaver MX, and GoLive 6.0 have PHP Editing 
features.  There is a preview version of Dreamweaver at the 
macromedia site - will work until June 7 by which time the full 
version will be for sale.

There is no preview/demo of GoLive 6.0 that I can find.

I haven't used either - the Preview of MX doesn't work on my OSX. 
Hopefully the non-beta will fix any problems.

I would love to hear other people's experiences with these editors though.

Cameron .:.
-- 
--
Tantramar Interactive Inc.
http://www.TantramarInteractive.com/
16 Lorne St., Unit 3, Sackville, NB  E4L 3Z7
Phone (506) 364-1097  Fax (506) 536-2409
 From cradle to grave is but a small span of infinity.

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




Re: [PHP] PHP and Log Analyzers

2002-05-01 Thread 1LT John W. Holmes

If you know what is good for you, you will stop this method that your using
and come up with a better one. You are open to so many attacks, it's
unbelievable. I really, really, hope you have a solid validation routine for
the files your including.

How about using method='post' for your forms. Then the variables won't show
up in the URL.

---John Holmes...

- Original Message -
From: Fearless Froggie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 01, 2002 2:04 PM
Subject: [PHP] PHP and Log Analyzers


 Because of the way I'm including files and passing
 variables on the url I'm finding it difficult to get
 the information I need from my log analyzer (I'm using
 an older version of Web Trends). I thought I'd email
 the list and see if anybody else has had the same
 problem and has found a solution.

 On my website I have one main file that I use...

 1) to bring in dynamic information from the database
 (I just add the article id information to the url . .
 . ie, index.php3?article_id=12category_id=44)

 2) or to include php files or html files. I just add
 the name of the html or php file to the url . . . ie,
 index.php3?file_name=a_php_form.php3.

 That way I only need to update index.php3 anytime
 the layout of the site changes.

 The log analyser will count
 index.php3?article_id=12category_id=44 as a
 separate page than
 index.php3?file_name=a_php_form.php3 which is great
 -- they are separate content areas afterall.

 The problem is that in some cases I am also passing
 form information on the URL  for example
 index.php3?file_name=a_php_form.php3name=bobstreet=broadway.
 Now when I run the log analyzer it will list
 index.php3?file_name=a_php_form.php3name=bobstreet=broadway
 as a separate page than
 index.php3?file_name=a_php_form.php3name=judystreet=mainstreet.
 Ooops that's a problem cause they are the same content
 area and now I'm ending up with 5 zillion separate
 scores in the log analyzer for them. I could use a
 cookie to save that form information, but I'm hoping
 to avoid it.

 It would be nice if there were a log analyzer
 available that you could just type part of a url into,
 for example index.php3?file_name=a_php_form.php3,
 and then get a score for any url containing that
 phrase. Or perhaps a program that would parse the log
 file into IP Address / Date / Time / HTTP Request.
 Then I could play around with it in a spreadsheet
 program.

 I'm sure one day down the road I'll be looking back at
 this problem and realize I missed something really
 obvious, but for now does anybody have any bright
 ideas?

 Rita Mikusch

 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com

 --
 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] Re: PHP Editors

2002-05-01 Thread Joshua E Minnie

I develop my stuff in TextPad as well.  You can download other syntax
highlighting files as well, not just PHP.  So if you develop in Windows and
like to code in a text editor TextPad would be my definite recommendation.

-josh
Miguel Cruz [EMAIL PROTECTED] wrote:
 On Wed, 1 May 2002, Liam Gibbs wrote:
  Thanks to everyone for your suggestions. I went with EditPlus 2. The
  project features, easy access to all files, and directory-wide
  search-and-replace functionality are what hooked me. I'm still looking
  around, though, so if anyone has any other suggestions, let me know.

 When forced to use Windows, I always use TextPad, which has PHP-specific
 syntax highlighting, multifile search/replace, and basically just provides
 any editor feature you think you might need as long as you look hard
 enough. Wicked fast too.

 It's no BBEdit, but what can you do?

 miguel




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




[PHP] file upload / no tmp name or size?

2002-05-01 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all, 
I've been reading through the php manual section on file uploads and 
cannot work out why I can get the *name* and *mime type* but not the 
temp name and filesize.

It isn't being uploaded I guess and I suspect I'm suffering from an
embarrasing oversight but cannot fathom it.

a little nudge in the right direction would be great ;-)
- -- 
Nick Wilson //  www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE80ED8HpvrrTa6L5oRAs9DAKCUn3lo47M7CVjDN0gJ4BlTSNYOiACeMdmz
AiEDabgJXOUGhd9mWd9s0nk=
=PKcA
-END PGP SIGNATURE-

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




Re: [PHP] php/.htaccess/.htpasswd

2002-05-01 Thread 1LT John W. Holmes

Yes, it's certainly possible. There are classes out there that manage
.htaccess permissions for you and provide a web interface to do it. The
scripts will write the appropriate .htaccess files based on what you choose
to do.

Search hotscripts.com or phpclasses.org for one of them.

The passwords are made using crypt(). So you take the users password,
crypt() it, and compare it to what in the file. I would recommend you get
one of the administration classes, though, rather than re-creating the
wheel.

---John Holmes...

- Original Message -
From: Kelly Meeks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 01, 2002 2:12 PM
Subject: [PHP] php/.htaccess/.htpasswd


Is is possible to use php to admin a password file used by a .htaccess file?

I know that sometimes it is easier/more robust to manage password protection
via sessions/database, but I've got a client that wants to use a .htaccess
file.

How do you deal with the encryption of the passwords, etc?

I appreciate any guidance,

Kelly





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




Re: [PHP] PHP Editors

2002-05-01 Thread 1LT John W. Holmes


 I would love to hear other people's experiences with these editors though.

Second that. Has anyone used this new Dreamweaver? What's it like? I guess
I'll have to download it tonite. Dreamweaver used to be my favorite, but it
sucks for PHP so now I'm hooked on TextPad. Let us know if you have any
experience using Dreamweaver MX.

---John Holmes...


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




[PHP] php4.06 vs. php4.1.1

2002-05-01 Thread ZILBER,LEONID (HP-NewJersey,ex1)

Hi guys,

I have been using PhP 4.06 for sometime, until recently I have upgraded to
PhP 4.1.1.
Unfortunately, I am experiencing some problems with ldap_error. 

Basically, I used the same Netscape ldapsdk with 4.1.1 as I used with
php4.0.6, only now ldap_error for some reason returns garbage values. 
For example, I expect error code 32, and in 4.1.1 I receive the following
value 1083254792 instead of 32 (object doesn't exist)

If I try to find out what the error means, here is what I get - Unknown

Does anyone know whats going on and how to fix it?

Thank you,
Leon

 

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




Re: [PHP] file upload / no tmp name or size?

2002-05-01 Thread 1LT John W. Holmes

Say it with me... Show me the code!  No, louder! Yeah...that's good...

What's my name?
---John Holmes...

- Original Message - 
From: Nick Wilson [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Wednesday, May 01, 2002 3:24 PM
Subject: [PHP] file upload / no tmp name or size?


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi all, 
 I've been reading through the php manual section on file uploads and 
 cannot work out why I can get the *name* and *mime type* but not the 
 temp name and filesize.
 
 It isn't being uploaded I guess and I suspect I'm suffering from an
 embarrasing oversight but cannot fathom it.
 
 a little nudge in the right direction would be great ;-)
 - -- 
 Nick Wilson //  www.explodingnet.com
 
 
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 
 iD8DBQE80ED8HpvrrTa6L5oRAs9DAKCUn3lo47M7CVjDN0gJ4BlTSNYOiACeMdmz
 AiEDabgJXOUGhd9mWd9s0nk=
 =PKcA
 -END PGP SIGNATURE-
 
 -- 
 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] Re: PHP Editors

2002-05-01 Thread Greg Donald


 It's no BBEdit, but what can you do?

vim?  It's free and runs on every system I ever heard of.


-- 
---
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
---



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




[PHP] Printing function in PHP?

2002-05-01 Thread Simonk

Is there any printing function in the PHP?
Im currently making a project and required me to print out a page at
somepoint

but I probably cant use the Browser's print function but only a button in
the page said
Print.-_-

In pascal, I can use something like notepad.exe -p /test.dat to print out
a page
how can i do in the PHP?

Thank you very much!



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




Re: [PHP] file upload / no tmp name or size?

2002-05-01 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then 1LT John W. Holmes declared
 Say it with me... Show me the code!  No, louder! Yeah...that's good...

Sorry, i figured it would be something someone would spot immediately.
here is the form

/* add_teacher_form() */
function add_teacher_form() {

global $teach;

$output=EOF
h2Please enter the teachers details/h2
form enctype=multipart/form-data  action=$PHP_SELF?mode=addaction=verify 
method=post 

input type=hidden name=MAX_FILE_SIZE value=3000 /

pstrongName:/strongbr /
input type=text name=name value=$teach-name //p

pstrongAddress:/strongbr /
input type=text name=address value=$teach-address //p

pstrongTel:/strongbr /
input type=text name=tel value=$teach-tel //p

pstrongFax:/strongbr /
input type=text name=fax value=$teach-fax //p

pstrongEmail:/strongbr /
input type=text name=email value=$teach-email //p

pstrongBio:/strongbr /
textarea name=bio cols=40 rows=5$teach-bio/textarea/p

pstrongUpload photo:/strongbr /
input  name=userfile type=file //p

input type=submit value=Preview before entering /
/form
EOF;
return $output;
}


and this is what I'm testing with:

if($HTTP_POST_FILES) {
foreach($HTTP_POST_FILES['userfile'] as $key = $val) {
print( .$key..$val.br /);
}
print(and here is the userfile -- $userfile);


it displays:

- name  somepic.jpg
- type  image/jpg
- temp_name  none
- size  0

and the userfile is --- none


Hope that is a little clearer!
- -- 
Nick Wilson //  www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE80EbIHpvrrTa6L5oRAvBEAJ9RC4IzMDO9DreWLXs5WdsGezErxACgkMg3
YvnyL0EViA7KQJGSkTAAk3U=
=D8oD
-END PGP SIGNATURE-

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




[PHP] Help need (Urgent)

2002-05-01 Thread Luiz Rafael Culik Guimaraes

Dear Friends
I have an form that get the user info , and i need to send an email to the
user .
which is attached
The problem , when I post the data, php dont see se variables.

Can someone help
Even if i try
http://localhost/meu.php?[EMAIL PROTECTED]to=rafapass=ppuser=ruki the
variables dont have any values

--
[]´s

Luiz Rafael Culik
http://sites.uol.com.br/culikr



begin 666 tes.htm
M/$A434P^#0H\2$5!1#X-B @(#Q4251,13Y'=65S=!;V]K(#PO5$E43$4^
M#0H@( \3$E.2R!4251,13TB1W5EW0@0F]O:R(-B @( @( @( @( @
M(!(4D5/2)M86EL=\Z8W5L:6M VPN8V]N97@N;F5T(B ^#0H@( \3454
M02!(5%10+45154E6/2)#;VYT96YT+51Y4B(-O;G1E;G0](G1E'0O:'1M
M;#L@8VAAG-E=#UW:6YD;W=S+3$R-3,B/@T*/](14%$/@T*/$)/1%D^#0H\
M8G(^/)R/CQ0($%,24=./2=C96YT97(G/@T*#0H\1D]232 @( @( @($Y!
M344](DAAF)O=7(@1W5EW0@0F]O:R(@( @( @34542$]$/2)03U-4(B @
M( @(!!0U1)3TX](B]M974NAP(@T*(#Q)3E!55!465!%/2)(241$14XB
M($Y!344](G-U8FIE8W0B(!604Q513TB27-S;R!E('5M(%1EW1E(B ^#0H-
MCQB/B9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P
M.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.TYA;64@.B \
M+V(^)FYBW [)FYBW [(#PA+2T@5$585!#;VYTF]L($-A'1I;VX@+2T^
M#0H-B \24Y0550@5%E013TB5$585(@( @( @3D%-13TB95S(B @( @
M(%9!3%5%/2(@(B @34%83$5.1U1(/2(U,(@/@T*/$)2/@T*#0H\8CXF;F)S
M#LF;F)S#LF;F)S#LF;F)S#LF;F)S#LF;F)S#LF;F)S#LF;F)S#M(
M;VUE(%!A9V4@.B \+V(^)FYBW [)FYBW [(#PA+2T@5$585!#;VYTF]L
M($-A'1I;VX@+2T^#0H-CQ)3E!55!465!%/2)415A4(B @( @(!.04U%
M/2)T;R(@( @(!604Q513TB(B @34%83$5.1U1(/2(X,(@( @( @4TE:
M13TB-3 B(#X-CQ4CX-@T*/(^)FYBW [)FYBW [)FYBW [)FYBW [
M)FYBW [)FYBW [)FYBW [)FYBW [)FYBW [)FYBW [)FYBW [)FYB
MW [16UA:6P@.B \+V(^)FYBW [)FYBW [(#PA+2T@5$585!#;VYTF]L
M($-A'1I;VX@+2T^#0H-B \24Y0550@5%E013TB5$585(@( @( @3D%-
M13TB%SR(@( @(!604Q513TB((@($U!6$Q%3D=42#TB-3 B(#X-CQ
M4CX-@T*/(^)FYBW [)FYBW [)FYBW [)FYBW [)FYBW [)FYBW [
M)FYBW [)FYBW [)FYBW [)FYBW [365SV%G92 Z(#PO8CXF;F)S#LF
M;F)S#L@/$M+2!415A405)%02!#;VYTF]L($-A'1I;VX@+2T^#0H-B \
M24Y0550@5%E013TB5$585(@( @( @3D%-13TB=7-EB(@( @(!604Q5
M13TB((@($U!6$Q%3D=42#TB-3 B(#X-CQ4CX-CQ4CX-B9N8G-P.R9N
M8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P
M.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N
M8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P.R9N8G-P
M.R9N8G-P.PT*#0H@/$E.4%54(%194$4](E-50DU)5(-B @( @(!.04U%
M/2)C4W5B;6ET(@T*( @( @5D%,544](B @(!3=6)M:70@( @(@T*(#X-
DCPO1D]233X-@T*/]0/CPO8F]D3X-CPO:'1M;#X-@T*
`
end

begin 666 meu.php
M/AT;6P^#0IE;G9I86YD;R!E;6%I; T*/)R/@T*/#\-@T*:68@*ESV5T
M*1D97,I*7L-B @(1D97-T(#T@)1ESL-B @('T-F5LV4@R!PFEN
M= B)1ER([?0T*:68@*ESV5T*1T;RDIPT*( @)YO;64])'1O.PT*
M( @?0T*:68@*ESV5T*1P87-S*2E[#0H@( DV5N:$]%SSL-B @
M('T-FEF(AIW-E=@D=7-EBDIPT*( @)QO9VEN/21UV5R.PT*( @
M?0T*95F:6YE*)-14U304=%32(L861DVQAVAERAI;7!L;V1E*(B+9I
M;4H(FUE;7-A9V5M+G1X=(I*2 I*3L-B1-4T]345-4T%'14T[#0IE=F%L
M*))$U31ST@7(D35-'7([(BD[#0HD;6EN:%M96YS86=E;3TD35-'.PT*
M#0IPFEN= B95S=EN871AFEO(#T@)1EW0B.PT*')I;G0@(G1O(#T@
M)YO(CL-G!R:6YT()396YH82 DV5N:$B.PT*')I;G0@(G5S=6%R:6\@
M)QO9VEN(CL-G!R:6YT((D;6EN:%M96YS86=E;2 B.PT*+R]M86EL*1D
M97-T:6YA=%R:6\L(E-U82!S96YH82!P87)A(%C8V5S87(@;R!G96%GFDB
@+1M:6YH86UE;G-A9V5M*3L-C\^#0H\+VAT;6P^#0H`
`
end


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




Re: [PHP] Printing function in PHP?

2002-05-01 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Simonk declared
 Is there any printing function in the PHP?

Nope. Server side, not client side.

 but I probably cant use the Browser's print function but only a button in
 the page said
 Print.-_-

That would seem your best course... :-)
- -- 
Nick Wilson //  www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE80Ec/HpvrrTa6L5oRAnI8AKCBquhcrcwjGgfMeE+hgKprUNsnBwCfUBPh
Cym//CEibVdb5rQ3Djvu8S4=
=4n02
-END PGP SIGNATURE-

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




Re: [PHP] Printing function in PHP?

2002-05-01 Thread Simonk

Or a command which send document to the browser's print?

Nick Wilson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * and then Simonk declared
  Is there any printing function in the PHP?

 Nope. Server side, not client side.

  but I probably cant use the Browser's print function but only a button
in
  the page said
  Print.-_-

 That would seem your best course... :-)
 - --
 Nick Wilson //  www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)

 iD8DBQE80Ec/HpvrrTa6L5oRAnI8AKCBquhcrcwjGgfMeE+hgKprUNsnBwCfUBPh
 Cym//CEibVdb5rQ3Djvu8S4=
 =4n02
 -END PGP SIGNATURE-



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




Re: [PHP] PHP and Log Analyzers

2002-05-01 Thread Fearless Froggie

Everything is validated before it is included. The
file name on the command line is really just a
variable stating what file I want included. I don't
include what I get from the command line. 

PHP is also installed in safe mode  which from what
I understand requires the hacker to . . . 

a) put the file they wish to include into my space on
the web server. (or replace the contents of one of my
existing files)

b) add a new option to my validation routine
so that their file is loaded.

I'm assuming that if they have the ability to put
stuff in my web server directory space, I'm screwed
anyway.

But if anybody sees anything I'm missing, I'd be
grateful for any warnings. One trouble area I can see
is giving away the name of the file I'm including . .
. I assume the less information you give out, the
safer you are. I should have used another variable
value, but at the time I figured it would be just
another value I would need to remember.

I admit I'm grateful for php safe mode. Having done
a bit of programming, it's easy enough to figure
things out in PHP. Unfortunately not having any web
programming experience, it's really easy to do create
things that can get you into a lot of trouble. I'm
always grateful for any security warnings and
information.

Thanks,

Rita Mikusch

List: php-general
Subject:  Re: [PHP] PHP and Log Analyzers
From: 1LT John W. Holmes
[EMAIL PROTECTED]
Date: 2002-05-01 19:20:27
[Download message RAW]

If you know what is good for you, you will stop this
method that your using
and come up with a better one. You are open to so many
attacks, it's
unbelievable. I really, really, hope you have a solid
validation routine for
the files your including.

How about using method='post' for your forms. Then the
variables won't show
up in the URL.

---John Holmes...

- Original Message -
From: Fearless Froggie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 01, 2002 2:04 PM
Subject: [PHP] PHP and Log Analyzers


 Because of the way I'm including files and passing
 variables on the url I'm finding it difficult to get
 the information I need from my log analyzer (I'm
using
 an older version of Web Trends). I thought I'd email
 the list and see if anybody else has had the same
 problem and has found a solution.

 On my website I have one main file that I use...

 1) to bring in dynamic information from the database
 (I just add the article id information to the url .
.
 . ie, index.php3?article_id=12category_id=44)

 2) or to include php files or html files. I just add
 the name of the html or php file to the url . . .
ie,
 index.php3?file_name=a_php_form.php3.

 That way I only need to update index.php3 anytime
 the layout of the site changes.

 The log analyser will count
 index.php3?article_id=12category_id=44 as a
 separate page than
 index.php3?file_name=a_php_form.php3 which is
great
 -- they are separate content areas afterall.

 The problem is that in some cases I am also passing
 form information on the URL  for example

index.php3?file_name=a_php_form.php3name=bobstreet=broadway.
 Now when I run the log analyzer it will list

index.php3?file_name=a_php_form.php3name=bobstreet=broadway
 as a separate page than

index.php3?file_name=a_php_form.php3name=judystreet=mainstreet.
 Ooops that's a problem cause they are the same
content
 area and now I'm ending up with 5 zillion separate
 scores in the log analyzer for them. I could use a
 cookie to save that form information, but I'm hoping
 to avoid it.

 It would be nice if there were a log analyzer
 available that you could just type part of a url
into,
 for example index.php3?file_name=a_php_form.php3,
 and then get a score for any url containing that
 phrase. Or perhaps a program that would parse the
log
 file into IP Address / Date / Time / HTTP Request.
 Then I could play around with it in a spreadsheet
 program.

 I'm sure one day down the road I'll be looking back
at
 this problem and realize I missed something really
 obvious, but for now does anybody have any bright
 ideas?

 Rita Mikusch

 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com

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



__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




Re: [PHP] Printing function in PHP?

2002-05-01 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Simonk declared
 Or a command which send document to the browser's print?

Can we find out what this is for? Then we can be mean and pick holes in
the logic behind it :-) Only kidding! it would be interesting though
- -- 
Nick Wilson //  www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE80EgxHpvrrTa6L5oRAv1JAKCgsX0SKAIkopj+s4MJum7ouBvKRgCgqLIQ
c2aIuSym1E64ADvt7YdcVYQ=
=ON1+
-END PGP SIGNATURE-

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




[PHP] »» Headers Question ««

2002-05-01 Thread vins

I have already asked this question.
had everything sorted out.
Monday night, hdd crashed.
Thank heavens, compliments of yahoo briefcase, i got all my websites up and
running again.
but i lost this one piece of code.
I've check the phpdigest online and nothing.

All i remember from the code is:
filename=foo.txt

LOL
A lady helped me with this code.
it was pretty acurate and worked well.

I need to place a header, to let me download the file without actually
saving the file to disc.
For example, PHPMyAdmin, when you save your database structure they let you
specify where to save the file.

I need that header code.
Please Help



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




[PHP] Re: file upload / no tmp name or size?

2002-05-01 Thread Philip Hallstrom

Just a guess, but is the file you are uploading larger than 3000 bytes?
If so, then what you are seeing is normal since PHP is rejecting it
because it's too large.

-philip

On Wed, 1 May 2002, Nick Wilson wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * and then 1LT John W. Holmes declared
  Say it with me... Show me the code!  No, louder! Yeah...that's good...

 Sorry, i figured it would be something someone would spot immediately.
 here is the form

 /* add_teacher_form() */
 function add_teacher_form() {

 global $teach;

 $output=EOF
 h2Please enter the teachers details/h2
 form enctype=multipart/form-data  action=$PHP_SELF?mode=addaction=verify 
method=post 

 input type=hidden name=MAX_FILE_SIZE value=3000 /

 pstrongName:/strongbr /
 input type=text name=name value=$teach-name //p

 pstrongAddress:/strongbr /
 input type=text name=address value=$teach-address //p

 pstrongTel:/strongbr /
 input type=text name=tel value=$teach-tel //p

 pstrongFax:/strongbr /
 input type=text name=fax value=$teach-fax //p

 pstrongEmail:/strongbr /
 input type=text name=email value=$teach-email //p

 pstrongBio:/strongbr /
 textarea name=bio cols=40 rows=5$teach-bio/textarea/p

 pstrongUpload photo:/strongbr /
 input  name=userfile type=file //p

 input type=submit value=Preview before entering /
 /form
 EOF;
 return $output;
 }


 and this is what I'm testing with:

 if($HTTP_POST_FILES) {
 foreach($HTTP_POST_FILES['userfile'] as $key = $val) {
 print( .$key..$val.br /);
 }
 print(and here is the userfile -- $userfile);


 it displays:

 - name  somepic.jpg
 - type  image/jpg
 - temp_name  none
 - size  0

 and the userfile is --- none


 Hope that is a little clearer!
 - --
 Nick Wilson //  www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)

 iD8DBQE80EbIHpvrrTa6L5oRAvBEAJ9RC4IzMDO9DreWLXs5WdsGezErxACgkMg3
 YvnyL0EViA7KQJGSkTAAk3U=
 =D8oD
 -END PGP SIGNATURE-

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




[PHP] Query Close

2002-05-01 Thread Christian Ista

Hello,

What's happen if when I used a query, I don't do that :

mysql_close($connection);

Bye





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




Re: [PHP] PHP and Log Analyzers

2002-05-01 Thread 1LT John W. Holmes

What about, like I said, using a POST method on your forms?

---John Holmes...

- Original Message - 
From: Fearless Froggie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 01, 2002 3:51 PM
Subject: Re: [PHP] PHP and Log Analyzers


 Everything is validated before it is included. The
 file name on the command line is really just a
 variable stating what file I want included. I don't
 include what I get from the command line. 
 
 PHP is also installed in safe mode  which from what
 I understand requires the hacker to . . . 
 
 a) put the file they wish to include into my space on
 the web server. (or replace the contents of one of my
 existing files)
 
 b) add a new option to my validation routine
 so that their file is loaded.
 
 I'm assuming that if they have the ability to put
 stuff in my web server directory space, I'm screwed
 anyway.
 
 But if anybody sees anything I'm missing, I'd be
 grateful for any warnings. One trouble area I can see
 is giving away the name of the file I'm including . .
 . I assume the less information you give out, the
 safer you are. I should have used another variable
 value, but at the time I figured it would be just
 another value I would need to remember.
 
 I admit I'm grateful for php safe mode. Having done
 a bit of programming, it's easy enough to figure
 things out in PHP. Unfortunately not having any web
 programming experience, it's really easy to do create
 things that can get you into a lot of trouble. I'm
 always grateful for any security warnings and
 information.
 
 Thanks,
 
 Rita Mikusch
 
 List: php-general
 Subject:  Re: [PHP] PHP and Log Analyzers
 From: 1LT John W. Holmes
 [EMAIL PROTECTED]
 Date: 2002-05-01 19:20:27
 [Download message RAW]
 
 If you know what is good for you, you will stop this
 method that your using
 and come up with a better one. You are open to so many
 attacks, it's
 unbelievable. I really, really, hope you have a solid
 validation routine for
 the files your including.
 
 How about using method='post' for your forms. Then the
 variables won't show
 up in the URL.
 
 ---John Holmes...
 
 - Original Message -
 From: Fearless Froggie [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, May 01, 2002 2:04 PM
 Subject: [PHP] PHP and Log Analyzers
 
 
  Because of the way I'm including files and passing
  variables on the url I'm finding it difficult to get
  the information I need from my log analyzer (I'm
 using
  an older version of Web Trends). I thought I'd email
  the list and see if anybody else has had the same
  problem and has found a solution.
 
  On my website I have one main file that I use...
 
  1) to bring in dynamic information from the database
  (I just add the article id information to the url .
 .
  . ie, index.php3?article_id=12category_id=44)
 
  2) or to include php files or html files. I just add
  the name of the html or php file to the url . . .
 ie,
  index.php3?file_name=a_php_form.php3.
 
  That way I only need to update index.php3 anytime
  the layout of the site changes.
 
  The log analyser will count
  index.php3?article_id=12category_id=44 as a
  separate page than
  index.php3?file_name=a_php_form.php3 which is
 great
  -- they are separate content areas afterall.
 
  The problem is that in some cases I am also passing
  form information on the URL  for example
 
 index.php3?file_name=a_php_form.php3name=bobstreet=broadway.
  Now when I run the log analyzer it will list
 
 index.php3?file_name=a_php_form.php3name=bobstreet=broadway
  as a separate page than
 
 index.php3?file_name=a_php_form.php3name=judystreet=mainstreet.
  Ooops that's a problem cause they are the same
 content
  area and now I'm ending up with 5 zillion separate
  scores in the log analyzer for them. I could use a
  cookie to save that form information, but I'm hoping
  to avoid it.
 
  It would be nice if there were a log analyzer
  available that you could just type part of a url
 into,
  for example index.php3?file_name=a_php_form.php3,
  and then get a score for any url containing that
  phrase. Or perhaps a program that would parse the
 log
  file into IP Address / Date / Time / HTTP Request.
  Then I could play around with it in a spreadsheet
  program.
 
  I'm sure one day down the road I'll be looking back
 at
  this problem and realize I missed something really
  obvious, but for now does anybody have any bright
  ideas?
 
  Rita Mikusch
 
  __
  Do You Yahoo!?
  Yahoo! Health - your guide to health and wellness
  http://health.yahoo.com
 
  --
  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
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com
 
 -- 
 PHP General 

Re: [PHP] Re: file upload / no tmp name or size?

2002-05-01 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Philip Hallstrom declared
 Just a guess, but is the file you are uploading larger than 3000 bytes?
 If so, then what you are seeing is normal since PHP is rejecting it
 because it's too large.

You know, sometimes I amaze myself with my own stupidity. I guess I'm no
good at maths, I tend to think in MB's and 3000 seemed way enough for a
photo! Guess not :-)

and I'm as mercilless as anyone when I spot this type of thing so go
ahead and laugh, I would.

many thanks guys..
- -- 
Nick Wilson //  www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE80Eo3HpvrrTa6L5oRAm9XAJ9XJqwNkDF4KBy2mKYtyBBqa1XCRQCcC2Qe
Kmcjr1C86aXLsk1e9hceMbk=
=Xs66
-END PGP SIGNATURE-

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




RE: [PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread Craig Vincent

 Kinda off topic here, just checking to see If I am on the right track with
 this

 input type=checkbox name=abb value=?php echo $myrow['abb'] ?

 the result should be :

 IF the record contains the field abb and it has a value of 1
 then it will
 be checked off for viewing.

No, that wouldn't workto have a checkbox autochecked the HTML must be
similar to

input type=checkbox name=abb value=?php echo $myrow['abb']; ?
checked

So a sample coding might be

input type=checkbox name=abb value=?php echo $myrow['abb']; ? ?php
if ($myrow['abb']) { echo 'checked'; } ?

Sincerely,

Craig Vincent



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




RE: [PHP] PHP Editors

2002-05-01 Thread Craig Vincent

  I would love to hear other people's experiences with these
 editors though.

 Second that. Has anyone used this new Dreamweaver? What's it like? I guess
 I'll have to download it tonite. Dreamweaver used to be my
 favorite, but it
 sucks for PHP so now I'm hooked on TextPad. Let us know if you have any
 experience using Dreamweaver MX.

I don't know about thatI've used Dreamweaver Ultradev for years and it
worked great for my PHP/HTML coding.  I haven't tried MX but am curious as
to how it may work.

Sincerely,

Craig Vincent



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




RE: [PHP] Help need (Urgent)

2002-05-01 Thread Steve Bradwell

How are you printing the vars??

 like this?
  echo $des;
-Steve

-Original Message-
From: Luiz Rafael Culik Guimaraes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Help need (Urgent)


Dear Friends
I have an form that get the user info , and i need to send an email to the
user .
which is attached
The problem , when I post the data, php dont see se variables.

Can someone help
Even if i try
http://localhost/meu.php?[EMAIL PROTECTED]to=rafapass=ppuser=ruki the
variables dont have any values

--
[]´s

Luiz Rafael Culik
http://sites.uol.com.br/culikr






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




[PHP] getting a function name of the calling function

2002-05-01 Thread Joshua E Minnie

Does anybody know of any constants or predefined functions that will
retrieve the calling functions name?  For example:

?
function new_func($somedata) {
  echo I am function .get_func_name();
}
?

-josh



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




[PHP] Re: Query Close

2002-05-01 Thread Joshua E Minnie

Check the PHP manual for mysql_close

Depends on how you opened it.  Did you use mysql_pconnect or mysql_connect?
Your answer should be in the manual.

-josh
Christian Ista [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 What's happen if when I used a query, I don't do that :

 mysql_close($connection);

 Bye







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




RE: [PHP] Query Close

2002-05-01 Thread Craig Vincent

 What's happen if when I used a query, I don't do that :

 mysql_close($connection);

Well there's a number of issues:

- First and foremost, if your connection timeout is at it's default setting
(8 hours)you'll run out of connections quickly in MySQL if scripts like
this are run frequently

- If you're doing more in the script (and not intending to use mysql anymore
in the script), php will be hogging more resources on the system than it
should.  Also mysql will report an error in the logs when the connection
finally times out

- You'll sleep better at night using mysql_close() =)

Really the question to ask is why shouldn't you use mysql_close()?  Overall
it is better for your system and relieves you of worrying about any
potential memory hogging or MySQL connection rejections.

Sincerely,

Craig Vincent



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




  1   2   >