[PHP-DB] List-Unsubscribe

2004-12-23 Thread Miguel Guirao


Miguel Guirao
Servicios Datacard
www.SIASA.com.mx

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Enviado el: Viernes, 21 de Mayo de 2004 12:04 p.m.
Para: [EMAIL PROTECTED]
Asunto: WELCOME to php-db@lists.php.net

Hi! This is the ezmlm program. I'm managing the
php-db@lists.php.net mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]

Acknowledgment: I have added the address

   [EMAIL PROTECTED]

to the php-db mailing list.

Welcome to [EMAIL PROTECTED]

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.


--- Administrative commands for the php-db list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

For help and a description of available commands, send a message to:
   <[EMAIL PROTECTED]>

To subscribe to the list, send a message to:
   <[EMAIL PROTECTED]>

To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:
   <[EMAIL PROTECTED]>

or for the digest to:
   <[EMAIL PROTECTED]>

For addition or removal of addresses, I'll send a confirmation
message to that address. When you receive it, simply reply to it
to complete the transaction.

If you need to get in touch with the human owner of this list,
please send a message to:

<[EMAIL PROTECTED]>

Please include a FORWARDED list message with ALL HEADERS intact
to make it easier to help you.

--- Enclosed is a copy of the request I received.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 34046 invoked by uid 1010); 21 May 2004 17:03:38 -
Delivered-To:
ezmlm-scan-php-db-sc.1085158340.fomodoacgcmabpfgfgbc-mguirao=acrosoft.ne
[EMAIL PROTECTED]
Delivered-To:
[EMAIL PROTECTED]
ts.php.net
Received: (qmail 33809 invoked from network); 21 May 2004 17:03:37 -
Received: from unknown (HELO acrosoft.net) (128.121.125.129)
  by pb1.pair.com with SMTP; 21 May 2004 17:03:37 -
Received: from Guirao (dsl-200-78-8-135.prod-infinitum.com.mx
[200.78.8.135])
by acrosoft.net (8.12.11/8.12.6) with ESMTP id i4LH3ZGF034541
for
<[EMAIL PROTECTED]
p.net>; Fri, 21 May 2004 11:03:36 -0600 (MDT)
From: "Miguel Guirao" <[EMAIL PROTECTED]>
To:
<[EMAIL PROTECTED]
p.net>
Subject: RE: confirm subscribe to php-db@lists.php.net
Date: Fri, 21 May 2004 12:04:24 -0500
Organization: SIASA
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
In-Reply-To: <[EMAIL PROTECTED]>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409

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



Re: [PHP-DB] still Parse errors ,,, can you. impart me about it.

2004-12-23 Thread Jochem Maas
Ford, Mike wrote:
To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

On 23 December 2004 18:04, amol patil wrote:

hallo Mike,
thanks for reply, but i want a bit more help, again
I want a Porsche if anybody is listening.

Please keep this on-list -- someone else may have time to reply before I can
(especially as I am about to go home for my tea and a well-earned sleep!).

i know these parse errors are generally typing mistakes ,
that is the only thing they are, assuming the build of php you are 
running is okay (i'll hazard a guess you are running on some shared 
hosting or a local copy on windows - either I doubt the php binary is 
the problem), php is telling you there are syntax errors

but i have checked for it , but still i am getting errors.
i have attached files  with  their codes , can you go through
it to find what is going wrong
the attached files are stripped when going thru the mailing list.

Parse error: parse error, unexpected '<' in
/home/dollar1/public_html/signup.php on line 263
this means the character '<' appeared in your code where it shouldn't
e.g.

$i <= 0; // okay
$i =< 0; // borked


parse error, unexpected '<' in
/home/dollar1/public_html/login.php on line 94
Parse error: parse error, unexpected T_STRING in
/home/dollar1/public_html/addfunds.php on line 91 then on 102
T_STRING means 'String Token' (a token is an atomic syntax element, very 
roughly speaking tokens are what the php engine turns your code into so 
that it can translate it into machine code)

it means you are declaring a string where you should not, e.g. a 
misplaced opening quote:


$i = 'this line is borked'';
---
in short you code is not correct. correct code does not give parse errors.
also realise that the error may not occur on the line the parser chokes 
on. often it is the preceeding line that has a typo, and in the case of 
an unmatched curly brace the error can occur at the very end of the 
script, when the offending curly brace is found somewhere at the beginning.


thank you.
"Ford, Mike" <[EMAIL PROTECTED]> wrote:
To view the terms under which this email is distributed,
please go to http://disclaimer.leedsmet.ac.uk/email.htm

On 21 December 2004 07:58, amol patil wrote:

hallo friend,
i have developed simple and small database website using php ,html
and java script. 

but i am getting these three parse errors on clicking ,
i have checked 3-4 imes on these line numbers, but there wasn't any
$ variable. php script is also correctly written.
what is this T_STRING error.
can you help me regarding this.
thank you.
errors:
Parse error: parse error, unexpected $ in
/home/dollar1/public_html/signup.php3 on line 379
$ in PHP's error messages represents the end of the file, so PHP has
reached the end of signup.php3 when it's still expecting more
program. This means you have an error somewhere in the preceding 378
lines -- most likely a missing }. (If PHP was complaining about a
variable reference, the message would refer to "unexpected
T_VARIABLE".) 

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

Do you Yahoo!?
Jazz up your holiday email with celebrity designs. Learn more.


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


RE: [PHP-DB] still Parse errors ,,, can you. impart me about it.

2004-12-23 Thread Ford, Mike
To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm



On 23 December 2004 18:04, amol patil wrote:

> hallo Mike,
> 
> thanks for reply, but i want a bit more help, again

Please keep this on-list -- someone else may have time to reply before I can
(especially as I am about to go home for my tea and a well-earned sleep!).

> 
> i know these parse errors are generally typing mistakes ,
> 
> but i have checked for it , but still i am getting errors.
> 
> i have attached files  with  their codes , can you go through
> it to find what is going wrong
> 
> 
> Parse error: parse error, unexpected '<' in
> /home/dollar1/public_html/signup.php on line 263
> 
> 
> parse error, unexpected '<' in
> /home/dollar1/public_html/login.php on line 94
> 
> 
> Parse error: parse error, unexpected T_STRING in
> /home/dollar1/public_html/addfunds.php on line 91 then on 102
> 
> 
> 
> thank you.
> 
> 
> "Ford, Mike" <[EMAIL PROTECTED]> wrote:
> To view the terms under which this email is distributed,
> please go to http://disclaimer.leedsmet.ac.uk/email.htm
> 
> 
> 
> On 21 December 2004 07:58, amol patil wrote:
> 
> > hallo friend,
> > 
> > i have developed simple and small database website using php ,html
> > and java script. 
> > 
> > but i am getting these three parse errors on clicking ,
> > 
> > i have checked 3-4 imes on these line numbers, but there wasn't any
> > $ variable. php script is also correctly written.
> > what is this T_STRING error.
> > 
> > can you help me regarding this.
> > 
> > thank you.
> > 
> > errors:
> > 
> > Parse error: parse error, unexpected $ in
> > /home/dollar1/public_html/signup.php3 on line 379
> 
> $ in PHP's error messages represents the end of the file, so PHP has
> reached the end of signup.php3 when it's still expecting more
> program. This means you have an error somewhere in the preceding 378
> lines -- most likely a missing }. (If PHP was complaining about a
> variable reference, the message would refer to "unexpected
> T_VARIABLE".) 
> 
> 
> Cheers!
> 
> Mike
> 
> -
> Mike Ford, Electronic Information Services Adviser,
> Learning Support Services, Learning & Information Services,
> JG125, James Graham Building, Leeds Metropolitan University,
> Headingley Campus, LEEDS, LS6 3QS, United Kingdom
> Email: [EMAIL PROTECTED]
> Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
> 
> 
> 
> Do you Yahoo!?
> Jazz up your holiday email with celebrity designs. Learn more.


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

Re: [PHP-DB] Do you know about my lost php-mysql manual.

2004-12-23 Thread Jochem Maas
Nayyar Ahmed wrote:
Hello All,
when I was in university 4 years back , one of my teacher have given me
a php-mysql manual from 4 years back will probably be about as relevant 
as a knife in a gun fight (i.e. not very - out of date documentation is 
garanteed to cause headaches due to changes in functionality/API etc etc)

a php-mysql manual which was focused on a Jock's site development, 
what is a Jock?
unfortunatly I have lost it, but I am unable to find where I can get that
online copy. 

the following are the best places to start:
http://www.php.net/manual/en/ref.mysql.php
http://www.php.net/manual/en/ref.mysqli.php
http://dev.mysql.com/doc/mysql/en/index.html
following that there is always google... there are a few pages here and 
there discussing/explaining mysql/php usage ;-)

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


Re: [PHP-DB] Do you know about my lost php-mysql manual.

2004-12-23 Thread Nayyar Ahmed
On Thu, 23 Dec 2004 17:30:29 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Nayyar Ahmed wrote:
> > Hello All,
> >
> > when I was in university 4 years back , one of my teacher have given me
> 
> a php-mysql manual from 4 years back will probably be about as relevant
> as a knife in a gun fight (i.e. not very - out of date documentation is
> garanteed to cause headaches due to changes in functionality/API etc etc)
> 
> > a php-mysql manual which was focused on a Jock's site development,
> 
> what is a Jock?
> 
> > unfortunatly I have lost it, but I am unable to find where I can get that
> > online copy.
> >
> 
> the following are the best places to start:
> 
> http://www.php.net/manual/en/ref.mysql.php
> http://www.php.net/manual/en/ref.mysqli.php
> http://dev.mysql.com/doc/mysql/en/index.html
thanks jochem: 
it would really help me to find my ways in php, I appriciate your quick response

cheers
> 
> following that there is always google... there are a few pages here and
> there discussing/explaining mysql/php usage ;-)
> 


-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

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



Re: [PHP-DB] help newbies :)

2004-12-23 Thread Jochem Maas
Nayyar Ahmed wrote:
Hello All,
I am developing attendence mangement system, its my first application
in PHP, I want to compaire the input text box value with table records
the follwing is the code
_index.htm___
..

 
  
  





  

  User Name:
  
  

  
  
   Class:
   
  BBA
  
BBA-IT
  BCS
  B.Sc
  MBA
  
MBA-IT
  MS-IT
  MS-CS
  Admin
 
   

  Password:
   
etc. etc. ...
_
_index.php_

$db= mysql_connect("localhost","root","masood");
mysql_select_db("attendence",$db);
 $result= mysql_query("select uname,upasswd from user",$db);
while ($myrow = mysql_fetch_array($result))
{
 if(($uname == $myrow["uname"]) && ($upasswd == $myrow["uname"]));
firstly the preceeding line should probably be:
if(($uname == $myrow["uname"]) && ($upasswd == $myrow["upasswd"]));

{   
echo $myrow["uname"];
echo $myrow["upasswd"];
}
}
?>


this give me error no 13, with uname,upasswd undefined, please help me out,
TIA
get familiar with the var_dump() and print_r() functions. for instance 
what does the following output:

$result= mysql_query("select * from user",$db);
while ($myrow = mysql_fetch_array($result)) {
print_r( $myrow );
}
are the indexes 'uname' and 'upasswd' defined in each dumped array?


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


[PHP-DB] Do you know about my lost php-mysql manual.

2004-12-23 Thread Nayyar Ahmed
Hello All,

when I was in university 4 years back , one of my teacher have given me
a php-mysql manual which was focused on a Jock's site development, 
unfortunatly I have lost it, but I am unable to find where I can get that
online copy. 

-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

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



RE: [PHP-DB] help newbies :)

2004-12-23 Thread Bastien Koert
you have a mysql account with that particular user identification?
bastien

From: Nayyar Ahmed <[EMAIL PROTECTED]>
Reply-To: Nayyar Ahmed <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: [PHP-DB] help newbies :)
Date: Thu, 23 Dec 2004 20:54:23 +0500
Hello All,
I am developing attendence mangement system, its my first application
in PHP, I want to compaire the input text box value with table records
the follwing is the code
_index.htm___
..
  
 
  
  





  

  User Name:
  

  
  
   
Class:

   
  BBA
  
BBA-IT
  BCS
  B.Sc
  MBA
  
MBA-IT
  MS-IT
  MS-CS
  Admin
 

  Password:
   


etc. etc. ...
_
_index.php_

$db= mysql_connect("localhost","root","masood");
mysql_select_db("attendence",$db);
 $result= mysql_query("select uname,upasswd from user",$db);
while ($myrow = mysql_fetch_array($result))
{
 if(($uname == $myrow["uname"]) && ($upasswd == $myrow["uname"]));
{
echo $myrow["uname"];
echo $myrow["upasswd"];
}
}
?>


this give me error no 13, with uname,upasswd undefined, please help me out,
TIA

--
Nayyar Ahmad
Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] help newbies :)

2004-12-23 Thread Nayyar Ahmed
On Thu, 23 Dec 2004 10:57:55 -0500, Bastien Koert <[EMAIL PROTECTED]> wrote:
> you have a mysql account with that particular user identification?
yes this connections works well when i query table user, in specified db.

> 
> bastien
> 
> >From: Nayyar Ahmed <[EMAIL PROTECTED]>
> >Reply-To: Nayyar Ahmed <[EMAIL PROTECTED]>
> >To: php-db@lists.php.net
> >Subject: [PHP-DB] help newbies :)
> >Date: Thu, 23 Dec 2004 20:54:23 +0500
> >
> >Hello All,
> >
> >I am developing attendence mangement system, its my first application
> >in PHP, I want to compaire the input text box value with table records
> >the follwing is the code
> >
> >
> >_index.htm___
> >..
> >   
> >
> >  
> >
> >   
> >
> >   
> >
> > 
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >>style="border-collapse: collapse" bordercolor="#11" width="100%"
> >id="AutoNumber2">
> >
> > 
> >
> >   User Name:
> >
> >   
> >
> >
> >
> >   
> >
> >   
> >
> >   
> >Class:
> >
> >
> >
> > 
> > BBA
> >
> > 
> > BBA-IT
> >
> > 
> > BCS
> >
> > 
> > B.Sc
> >
> > 
> > MBA
> >
> > 
> > MBA-IT
> >
> > 
> > MS-IT
> >
> > 
> > MS-CS
> >
> > 
> > Admin
> >
> >
> >
> >
> >
> >   Password:
> >
> >   
> >
> >
> >etc. etc. ...
> >_
> >
> >_index.php_
> >
> > >
> >$db= mysql_connect("localhost","root","masood");
> >mysql_select_db("attendence",$db);
> >
> >$result= mysql_query("select uname,upasswd from user",$db);
> >   while ($myrow = mysql_fetch_array($result))
> >   {
> >if(($uname == $myrow["uname"]) && ($upasswd == $myrow["uname"]));
> >   {
> >   echo $myrow["uname"];
> >   echo $myrow["upasswd"];
> >   }
> >   }
> >?>
> >
> >
> >
> >this give me error no 13, with uname,upasswd undefined, please help me out,
> >TIA
> >
> >
> >
> >
> >--
> >Nayyar Ahmad
> >
> >Lecturer
> >Faculty Of Computer Science,
> >Institute Of Management Sciences,
> >Hayat Abad Peshawar , Pakistan.
> >Office : 92-091-9217404 , 9217452
> >Cell :  92-0333-9139461
> >
> >--
> >PHP Database Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 


-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

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



[PHP-DB] help newbies :)

2004-12-23 Thread Nayyar Ahmed
Hello All,

I am developing attendence mangement system, its my first application
in PHP, I want to compaire the input text box value with table records
the follwing is the code


_index.htm___
..


   

  

  













  



  User Name:

  

  

  

  

   Class:

   

  BBA

  
BBA-IT

  BCS

  B.Sc

  MBA

  
MBA-IT

  MS-IT

  MS-CS

  Admin

 

   

  Password:

   

etc. etc. ...
_

_index.php_





this give me error no 13, with uname,upasswd undefined, please help me out,
TIA




-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461

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



RE: [PHP-DB] Re: HTTP Auth for PHPMyAdmin

2004-12-23 Thread Bastien Koert
just lock the folder with http AUTH
bastien
From: Mark Benson <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: [PHP-DB] Re: HTTP Auth for PHPMyAdmin
Date: Thu, 23 Dec 2004 13:31:50 +
Peter Lovatt:
>set auth type to cookies
>
>Peter
This presumably means that a cookie would remain allowing anyone who used 
the browser on my machine to access it after login. Again, if this is the 
case, this is not adequaterly secure, I require the phpMyAdmin pages to be 
locked at all times from all points of access.

--
Mark Benson
http://homepage.mac.com/markbenson
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] PHP + FreeTDS + SunOne + Linux?

2004-12-23 Thread Jeffrey Fogel
I've got a strange situation. I have followed all the
directions on how to compile FreeTDS and PHP 4.3.10 to
enable MSSQL support. Everything compiles fine works
from the command line, but the MSSQL functions fail
when I attempt to run them through the
Netscape/iPlanet/SunOne plug in.

I'm running RedHat 2.1AS on a dual processor Xenon
with 2G of ram. My webserver is SunOne(iPlanet)
version 6.1. I am also running version 4.0.1 of SunOne
ASP(Chilisoft)

Here's what I've done:

Built FreeTDS 0.62.4 with the following:
./configure --with-tdsver=8.0 --enable-msdblib
--enable-dbmfix --with-gnu-ld

It works and I can connect to my database with tsql.

I built PHP like this:
 ./configure  --with-nsapi=/opt/iplanet
--with-mysql=/usr --prefix=/usr/local --enable-fastcgi
--with-zlib --enable-dbase --enable-ftp --with-openssl
--with-mssql=/usr/local

I am running the Zend_Optimizer2.5.7 and IonCube
extensions. I can see that MSSQL support is compiled
in from phpinfo

If I run this from the command line:
php -r '$con= mssql_connect("","","");
mssql_select_db("",$con);
$rs=mssql_query("SELECT * from ",$con);
print mssql_result($rs,0,0);
mssql_close($con);'

I get the output I expect.

If I run this through the webserver:

","","");
mssql_select_db("",$con);
$rs=mssql_query("SELECT * from ",$con);
print mssql_result($rs,0,0);
mssql_close($con);
?>


The only output I receive is ""
No error logs are generated anywhere (webserver, php,
or freetds), even though php and freetds logging is
enabled. Other php scripts that dont use the mssql
functions run fine.

It seems to fail at the first mssql_ function and no
processing continues after that.

If anyone has an idea or a way to verify if the
ext/mssql module is compiled into the libphp4.so
object, I would apprecate it.

Thanks,
Jeffrey




__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage
less. 
http://info.mail.yahoo.com/mail_250



__ 
Do you Yahoo!? 
Send a seasonal email greeting and help others. Do good. 
http://celebrity.mail.yahoo.com

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



Re: [PHP-DB] Re: HTTP Auth for PHPMyAdmin

2004-12-23 Thread Jason Wong
On Thursday 23 December 2004 21:31, Mark Benson wrote:

> This presumably means that a cookie would remain allowing anyone who used
> the browser on my machine to access it after login. Again, if this is the
> case, this is not adequaterly secure, I require the phpMyAdmin pages to be
> locked at all times from all points of access.

Did you try asking on the phpMyAdmin support channels?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
--
/*
There is a 20% chance of tomorrow.
*/

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



[PHP-DB] Re: HTTP Auth for PHPMyAdmin

2004-12-23 Thread Mark Benson
Peter Lovatt:

>set auth type to cookies
>
>Peter

This presumably means that a cookie would remain allowing anyone who used the 
browser on my machine to access it after login. Again, if this is the case, 
this is not adequaterly secure, I require the phpMyAdmin pages to be locked at 
all times from all points of access.

-- 
Mark Benson

http://homepage.mac.com/markbenson

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



Re: [PHP-DB] New to the Mailing List

2004-12-23 Thread Jason Wong
On Thursday 23 December 2004 16:50, Ben wrote:

> I attach a document, which is used to send an email with attachments. What
> I need to do though, is if a form field is left blank, then that tag is not
> included in the email. Any clues anybody?

Check whether field is blank, if so don't include it? Or is this a trick 
question?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
--
/*
I'm going to Vietnam at the request of the White House.  President Johnson
says a war isn't really a war without my jokes.
  -- Bob Hope
*/

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



Re: [PHP-DB] fopen

2004-12-23 Thread Jason Wong
On Thursday 23 December 2004 16:36, Yemi Obembe wrote:

> How can I get the file name of the home page of a url I opened with fopen()
>  this way:
>
> $handle = fopen("http://www.example.com/";, "r");
>
> ?

You can't. 

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
--
/*
I'm wet!  I'm wild!
*/

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



RE: [PHP-DB] _POST, _GET, _REQUEST not working

2004-12-23 Thread Ford, Mike
To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm



On 23 December 2004 01:12, Keane, Warren A FIN:EX wrote:

> I did try
> 
> if (empty($_GET)) { parse_str($_SERVER['QUERY_STRING'],$_GET); }
> 
> which worked so I guess I should be able to come up with an
> equivalent for _POST using argv, argc.
> 
> > I am guessing but I also think the problem is to do with the fact
> > that the CGI sapi is being used.
> 
> I am using the CLI SAPI, I checked using php_sapi_name(). Is this
> causing the problem?

Absolutely -- this is the Command-Line Interface.  As this is intended for
command-line scripting, it has no notion of being used in a Web context and
does not even attempt to fill the $_POST or $_GET (or most of the other $_)
arrays.  You need to use either the CGI SAPI, or the Apache module.

Cheers!

Mike

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

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



RE: [PHP-DB] New to the Mailing List

2004-12-23 Thread Ben
Thanks Graeme, but I am only a real novice at this. This was te first real
PHP I have tried to do. If you could let me know in a little more detail,
that would be most appreciative.

Merry christmas ;-)

-Original Message-
From: graeme [mailto:[EMAIL PROTECTED] 
Sent: 23 December 2004 09:04
To: [EMAIL PROTECTED]
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] New to the Mailing List


Try using the if statement.

Ben wrote:

>Morning all.
>
>I attach a document, which is used to send an email with attachments. 
>What I need to do though, is if a form field is left blank, then that 
>tag is not included in the email. Any clues anybody?
>
>It is vital that no information is sent for blank fields because it 
>goes to a system that would reject and email that has tags eg '1010: '
>
>Many thanks in advance
>
>Ben
>
>
>  
>

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



Re: [PHP-DB] New to the Mailing List

2004-12-23 Thread graeme
Try using the if statement.
Ben wrote:
Morning all.
I attach a document, which is used to send an email with attachments. What I
need to do though, is if a form field is left blank, then that tag is not
included in the email. Any clues anybody?
It is vital that no information is sent for blank fields because it goes to
a system that would reject and email that has tags eg '1010: '
Many thanks in advance
Ben
 

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


[PHP-DB] New to the Mailing List

2004-12-23 Thread Ben
Morning all.

I attach a document, which is used to send an email with attachments. What I
need to do though, is if a form field is left blank, then that tag is not
included in the email. Any clues anybody?

It is vital that no information is sent for blank fields because it goes to
a system that would reject and email that has tags eg '1010: '

Many thanks in advance

Ben


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

[PHP-DB] fopen

2004-12-23 Thread Yemi Obembe
Hi list,
How can I get the file name of the home page of a url I opened with fopen()  
this way:
 
$handle = fopen("http://www.example.com/";, "r");

?





-

A passion till tomorrow,
Opeyemi Obembe | ng.clawz.com





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com