[PHP] Why am i not getting any php e-mails? just testing;

2002-03-11 Thread Caleb Carvalho



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




[PHP] How does attachment works with sybase?

2002-03-06 Thread Caleb Carvalho

Hi,

How does attachment works with sybase? I mean
if I wanna create a table to accept attachments,
what data type do I use,

any examples would be much appreciated;

Thanks,

C.



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




[PHP] How does attachment works with sybase?

2002-03-06 Thread Caleb Carvalho

Hi,

How does attachment works with sybase? I mean
if I wanna create a table to accept attachments,
what data type do I use,

any examples would be much appreciated;

Thanks,

C.


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




[PHP] PHPBuilder.com Has an Easy File Upload Article, does any1 know

2002-03-06 Thread Caleb Carvalho

Hi all,

PHPBuilder.com Has an Easy File Upload Article, i find it to be very useful 
and helpful for my situation, does any one know of a similar but for 
download the uploaded file?

I would like to upload and download file in my server directory using php,

please, please let me know of any article that can help me,

in the mean time i'll keep searching for solution;

many thanks

Caleb

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




[PHP] index.php

2001-12-30 Thread Caleb Carvalho

Hi all,

all the sudden my apache 1.3.22 is not showing my index.php page
php-4.0.6, i have added the addtype .php inside httpd.conf

not only that, i have also noticed that the ?php phpinfo(); ? is not
working also, this is  not displaying the test page,

I am using netscape as a browser, do you guys know about any issue related 
to this?

many thanks and happy x-mas/happy new year



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] $PHP_SELF not working -please help

2001-12-19 Thread Caleb Carvalho

Hi there,

I have created a script that is suppose to get some input from
user and display back, and i have the following method

FORM METHOD=POST ACTION=? echo $PHP_SELF ? 

so i have a script that if login fails it will ask the user
to register,


if(!$username) {
  session_unregister(userid);
  session_uregister(userpassword);
  echo Authorisation Failed. .
   you must enter a valid credentials..
   try again.BR\n;
echo A HREF=\$PHP_SELF\Login/ABR;
echo If you're not a member please regsiter.BR\n;
echo A HREF=\$register_script\Membership/A;
exit;
}
else echo welcome, $username!;


Now for some strange reasons it tries to access my web direcorty that does 
not contain any file, and i get the 404 page not found error.

any help would do,

Thanks

Caleb


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] please help! ./common_db.inc'

2001-12-17 Thread Caleb Carvalho

Hi all,

this is my first real php program -can any one explain to
me what this error message means?

Warning: Failed opening './common_db.inc' for inclusion (include_path='') in 
/var/www/html/myphp/ex.php on line 2



thanks a lot,

Caleb

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php test page not working with apache 1.3.22

2001-11-09 Thread Caleb Carvalho

Hi all,

I've just finish upgrading my apache server to apache 1.3.22,
I have also compiled my php-4.0.6 with it.

When I try to test it using

? php phpinfo(); ? saved as php, the browser tries to download it instead.

I have added the application type under httpd.conf and restarted the server
./apachectl restart.

when I type

./apachectl status it does not show that the php-4.0.6 has be compiled with 
it.

Am i missing some steps? please point me out,

p.s. i have added the module of php4 /libphp4.a to apache
and did the make command to make it executable.

Thanks,

Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] format date

2001-10-23 Thread Caleb Carvalho

Thanks,

I am inserting into table
values('$product','$title,'$date')

the date field gets added by default, like time stamp,

when i view the contents added to database i see date field showing
ex:

display.php

$product, $title,   $date

mango good fruit  Jan 1 1900 12:00:00:000AM
.

I would like the date to show  23-10-01 instead of
Jan 1 1900 12:00:00:000AM that gets inserted as a default

any help

Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300



From: David Robley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Caleb Carvalho [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] format date
Date: Tue, 23 Oct 2001 10:02:26 +0930

On Mon, 22 Oct 2001 22:38, Caleb Carvalho wrote:
  Hi all,
 
  i would like a simple way to get date field formatted from my little
  sybase,
 
  for some reason the output of it is showing the wrong date
  example Jan 1 1900 12:00:00:000AM
 
  thanks

Perhaps if you could show what you are doing and which is not working,
someone might be able to help you. As it is we have no idea of the format
of your data or the method you are using.

--
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA

Politics is the entertainment branch of industry.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] format date

2001-10-22 Thread Caleb Carvalho

Hi all,

i would like a simple way to get date field formatted from my little sybase,

for some reason the output of it is showing the wrong date
example Jan 1 1900 12:00:00:000AM

thanks

Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] stripslashes

2001-10-04 Thread Caleb Carvalho

Hi all,

if i have an array that is fetching the result to be display
example,
for ($i =1; $i=sybase_num_rows($result); $i++){
$row =sybase_fetch_array($result);

  $row[product]
  a href=solution.php?id=$row[prob_title]$row[prob_title]/a
  $row[description]$row[solution]

where would i put the stripslashes function to get the description?
...
I have tried up and down, but unfortunately am still learning php,

sorry,

Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] stripslashes

2001-10-04 Thread Caleb Carvalho

Steve,

Thank you very much,

i will try it now..




Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300



From: Steve Werby [EMAIL PROTECTED]
To: Caleb Carvalho [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] stripslashes
Date: Thu, 4 Oct 2001 10:47:27 -0400

Caleb Carvalho [EMAIL PROTECTED] wrote:
  if i have an array that is fetching the result to be display
  example,
  for ($i =1; $i=sybase_num_rows($result); $i++){
  $row =sybase_fetch_array($result);
 
$row[product]
a href=solution.php?id=$row[prob_title]$row[prob_title]/a
$row[description]$row[solution]
 
  where would i put the stripslashes function to get the description?

$var = $row[product] . 'a href=solution.php?id=' . $row[prob_title] . '' 
.
$row[prob_title] .
'/a' . stripslashes( $row[description] ) . $row[solution];

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/






_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php not reading php.ini

2001-10-03 Thread Caleb Carvalho

Hi all,

I have enable sybase magic quotes=on in php.ini, and with the test file in 
my phpinfo(); says configuration path /www/conf i have placed the file 
there, but the sybase magic quote=off!!

am i suppose to change all files ie php.ini -dist  php.ini -optimized 
aswell?

pls help

Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php not reading php.ini

2001-10-03 Thread Caleb Carvalho

Hi,
you're right, i did without knowledge enable --with -conf /www/conf when 
running the ./configure :(..

ok, thanks for point that out, do i need to go to square 0 i mean by running 
configure then make make install?

thanks

Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300



From: Ralph Guzman [EMAIL PROTECTED]
To: Caleb Carvalho [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] php not reading php.ini
Date: Wed, 03 Oct 2001 01:05:07 -0700

Unless you modified the default path to the configuration file when
compiling, your Configuration Path setting should be set to something like
this:

/usr/local/lib/php.ini

in this case, you say it is set to /www/conf. I'm assuming by this that it
looking for a configuration file called 'conf' in the www directory. You
might want to look this over, and possible recompile with the default
setting.

-Original Message-
From: Caleb Carvalho [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 12:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php not reading php.ini

Hi all,

I have enable sybase magic quotes=on in php.ini, and with the test file in
my phpinfo(); says configuration path /www/conf i have placed the file
there, but the sybase magic quote=off!!

am i suppose to change all files ie php.ini -dist  php.ini -optimized
aswell?

pls help

Caleb Carvalho
Application Engineer
LoadRunner/APM

-
Enterprise Testing and Performance Management Solutions

-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php not reading php.ini

2001-10-03 Thread Caleb Carvalho

Hi,
yeah i did httpd restart, and i also tried to place the file
in /etc/httpd/conf  /usr/local/lib  /www/conf but not luck...

I am using php-4.0.6,


Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300



From: David Robley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Caleb Carvalho [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] php not reading php.ini
Date: Wed, 3 Oct 2001 17:32:10 +0930

On Wed,  3 Oct 2001 17:16, Caleb Carvalho wrote:
  Hi all,
 
  I have enable sybase magic quotes=on in php.ini, and with the test file
  in my phpinfo(); says configuration path /www/conf i have placed the
  file there, but the sybase magic quote=off!!
 
  am i suppose to change all files ie php.ini -dist  php.ini -optimized
  aswell?
 
  pls help

You did remember to restart apache to re-read the php.ini? (Assuming you
are not using a cgi version of PHP)

--
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA

DILATE: To live longer.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] addslashes q's

2001-10-03 Thread Caleb Carvalho

after enabling magic quotes with sybase,
now, i don't even need to addslashes..
the only problem is that is adding  quote when i say won't it adds won''t

does any one know why?

thanks a lot

Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] addslashes q's

2001-10-03 Thread Caleb Carvalho

thanks,

how do i get the right output?



Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300



From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Caleb Carvalho [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] addslashes q's
Date: Wed, 3 Oct 2001 09:15:49 -0700 (PDT)

  after enabling magic quotes with sybase,
  now, i don't even need to addslashes..
  the only problem is that is adding  quote when i say won't it adds 
won''t
 
  does any one know why?

Because that is how a ' is supposed to be escaped in Sybase.

-Rasmus


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] what directory should put the php.ini?

2001-10-02 Thread Caleb Carvalho

Hi all,

I have just rename the php.ini-dist to php.ini from the
installation directoy but am not sure where to place it in order for php to 
rea,, any help??
thanks



Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Warning: Sybase message: Incorrect syntax near 't'.

2001-10-01 Thread Caleb Carvalho

Hi am trying to add data from html form,  and it seems like the line 14 in 
my script,

$sybase_query=INSERT into problem 
VALUES('$product','$pro_title','$description','$solution');
$sybase_result=sybase_query($sybase_query);


Warning: Sybase message: Incorrect syntax near 't'. (severity 15) in 
/var/www/html/process.php on line 14

Warning: Sybase message: Unclosed quote before the character string ')'. 
(severity 15) in /var/www/html/process.php on line 14

when trying to insert the following data


Product :Test Director

Problem Title : Doesn\'t work

Description: I dont knw why

Solution : dondd





Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] still learning php

2001-10-01 Thread Caleb Carvalho

I posted a msg earlier on regarding error when adding text with quotes '
..
I have just found out thar I need to use addslash() function,

my q's is

where do i put this function?



Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] still learning php

2001-10-01 Thread Caleb Carvalho

Hi Dimitris,

thanks, but what if I have 5 fields to add into ie name,surname,comments?



Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300



From: Dimitris Kossikidis [EMAIL PROTECTED]
To: Caleb Carvalho [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] still learning php
Date: Mon, 1 Oct 2001 14:29:14 +0300

$field_value = I 'm bla bla;
$field_value  = addslashes($field_value);

$sql = Insert into TABLE values('$field_value');


- Original Message -
From: Caleb Carvalho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 01, 2001 2:05 PM
Subject: [PHP] still learning php


  I posted a msg earlier on regarding error when adding text with quotes '
  ..
  I have just found out thar I need to use addslash() function,
 
  my q's is
 
  where do i put this function?
 
 
 
  Caleb Carvalho
  Application Engineer
  LoadRunner/APM
  
--
---
  Enterprise Testing and Performance Management Solutions
  
--
---
  Mercury Interactive
  410 Frimley Business Park
  Frimley, Surrey.  GU16 7ST
  United Kingdom
  Telephone :  +44 (0)1276 808300
 
 
  _
  Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Thank you all

2001-10-01 Thread Caleb Carvalho


thank you all, you've been a really good help
I must say i've learned a lot, i will now try and get busy

ps. this php mailing list really works :)

many thanks

Caleb Carvalho
Application Engineer
CSO Europe
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300



From: Dimitris Kossikidis [EMAIL PROTECTED]
To: Caleb Carvalho [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] still learning php
Date: Mon, 1 Oct 2001 17:08:00 +0300

$sql =  select firstname, lastname, address etc from TABLE;

execute sql statement;

while fetching records {
 $firstname = stripslashes( $firstname);
 $lastname = stripslashes ( $lastname); //  O\' Reily now becomes O'
Reily
   }
that's all

- Original Message -
From: Caleb Carvalho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 01, 2001 4:32 PM
Subject: Re: [PHP] still learning php


  thank you s much that was much much better indeed :),
 
  i am assuming that i need to use the same for sql_quey sql_display
  is that correct?
 
 
  Caleb Carvalho
  Application Engineer
  LoadRunner/APM
  
--
---
  Enterprise Testing and Performance Management Solutions
  
--
---
  Mercury Interactive
  410 Frimley Business Park
  Frimley, Surrey.  GU16 7ST
  United Kingdom
  Telephone :  +44 (0)1276 808300
 
 
 
  From: Dimitris Kossikidis [EMAIL PROTECTED]
  To: Caleb Carvalho [EMAIL PROTECTED]
  CC: [EMAIL PROTECTED]
  Subject: Re: [PHP] still learning php
  Date: Mon, 1 Oct 2001 15:52:23 +0300
  
  Use addslashes() to escape single quotes or double quotes. It 's in the
  manual
  
  // giving some values
  $firstname =Bob;
  $lastname = O' Reily; // This could cause an error if not use
addslashes
  $address = Somewhere;
  $age= 19;
  
  // adding slashes to quotes
  $firstname = addslashes($firstname);
  $lastname = addslashes($lastname);
  $address = addslashes($address);
  
  $sql =   insert into TABLE values ( '$firstname', '$lastname',
'$address',
  $age) ;
  
  - Original Message -
  From: Caleb Carvalho [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Monday, October 01, 2001 3:36 PM
  Subject: Re: [PHP] still learning php
  
  
Hi Dimitris,
   
thanks, but what if I have 5 fields to add into ie
  name,surname,comments?
   
   
   
Caleb Carvalho
Application Engineer
LoadRunner/APM
   
 
 --
  ---
Enterprise Testing and Performance Management Solutions
   
 
 --
  ---
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300
   
   
   
From: Dimitris Kossikidis [EMAIL PROTECTED]
To: Caleb Carvalho [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] still learning php
Date: Mon, 1 Oct 2001 14:29:14 +0300

$field_value = I 'm bla bla;
$field_value  = addslashes($field_value);

$sql = Insert into TABLE values('$field_value');


- Original Message -
From: Caleb Carvalho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 01, 2001 2:05 PM
Subject: [PHP] still learning php


  I posted a msg earlier on regarding error when adding text with
  quotes
  '
  ..
  I have just found out thar I need to use addslash() function,
 
  my q's is
 
  where do i put this function?
 
 
 
  Caleb Carvalho
  Application Engineer
  LoadRunner/APM
 
   
  
 --
---
  Enterprise Testing and Performance Management Solutions
 
   
  
 --
---
  Mercury Interactive
  410 Frimley Business Park
  Frimley, Surrey.  GU16 7ST
  United Kingdom
  Telephone :  +44 (0)1276 808300
 
 
  
_
  Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED

[PHP] showing wrong php version after install

2001-09-26 Thread Caleb Carvalho

hi all,

just finished installing php-4.0.6, now when writing the test.php page with 
the ?phpinfo();?

i am still getting the PHP Version 4.0.4pl1 that was installed with my linux 
7.1 distro !!!

any help?


Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] where can i get a sample php scripts to get data from pubs2 in sybase?

2001-09-26 Thread Caleb Carvalho

hi all,

i've managed to setup php-4.0.6 sucessfully with sybase, apache :)

does any1 know where to get a sample script that will initially get the 
pubs2 data from sybase?



Caleb Carvalho
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Test.php does not show that it was configured with sybase on Linux 7.1

2001-09-25 Thread Caleb Carvalho

Hi all,

I have installed sybase on my Linux 7.1 machine and after
creating my first php-4.0.4pl1-9 page, sybase is not listed under 
./configure section,,,

do i need to recompile again???

pls help



Caleb Carvalho
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] can you pls tell me where is php ./configure file in linux 7.1

2001-09-25 Thread Caleb Carvalho

hi,
am still having problem to compile my sybase, i have linux 7.1 and php was 
installed during installation process, i can't find the ./configure file..

php-4.0.4pl1-9

pls help



Caleb Carvalho
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] newbie ? :)

2001-09-07 Thread Caleb Carvalho

hello all,

i am trying to install Loadrunner for in linux,

am not sure where is my LD_LIBRARY_PATH
linux rhat7.1 can some pls point me out

many thanks,

kind regards
caleb



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: someone please explain weird getforeignkeys

2001-08-23 Thread Caleb Carvalho

Hi all,

I've just install php-4.0.6 in my linux machine,
but am not familiar with the syntax,

How good is php in terms of managing database (sybase) data compare to
Java? I mean to display on the web?

Thanks,

Caleb Carvalho
Application Engineer
Tier 1 CSO Europe
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300



From: Richard Lynch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: someone please explain weird getforeignkeys
Date: Wed, 22 Aug 2001 18:11:29 -0500

  I need to look up a table's foreign keys using the unified 
ODBC-functions.
  'odbc_foreignkeys()' requires me to pass seven parameters, each of them
being
  mandatory, to archive this.

Yes.

  Because the approach is not intuitive anyhow and there is no 
documentation
  available except of the PHP-manual's prototype, neither me nor my
co-workers
  have any idea of how to apply the function.

There *IS* some explanatory text about what happens depending on which args
you fill in.

Presumably you use  for any args you don't care to fill in.

  The manual states that three of the arguments are superfluous, depending
on
  the application; but the prototype contradicts this, declaring them
mandatory.

Use  on args you don't care about.  The function doesn't need them, but
PHP only allows leaving out arguments at the end of the list, not the
middle, so the optional argument language feature was probably not all
that useful.

  Can anyone please point me to a working code example or provide one?

That I can't do...

As near as I can figure, the pk_qualifier and pk_owner, and fk_qualifier 
and
fk_owner args are not needed?  Or, perhaps, if you specify them, the result
set is filtered down some way...

Try calling it with  for all the arguments you don't understand, and see
what you get.

  Btw, how are the inter-table relationships defined at all? I cannot 
think
of
  a way to determine foreign keys without complete knowledge of all joins
and
  subqueries potentially run against the database.

When you CREATE a table, you can declare a given COLUMN as a FOREIGN KEY.
If you didn't do that, this function is pretty useless to you...

PS  If you do figure something out, contribute to the notes, eh?

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] sybase on linux RH 7.1?

2001-08-23 Thread Caleb Carvalho

has any1 installed sybase on linux RH 7.1?

where can i get a good manual? am getting errors trying to ./startserver -f
./RUN_SYBASE




Caleb Carvalho
Application Engineer
Tier 1 CSO Europe
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
-
Mercury Interactive
410 Frimley Business Park
Frimley, Surrey.  GU16 7ST
United Kingdom
Telephone :  +44 (0)1276 808300


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]