[PHP] Re: Hidding an image

2002-04-07 Thread martinahingis

If you dont want user to see the image. dont put the image to the page!
Or what you want is just something different?

--
-
martina.


Morten Nielsen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I got a page where I have to images (IMG), which is also a link. Is it
 possible to hide an image so the user can't see it?

 Regards,
 Morten





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




[PHP] Re: Help with nested if statements, is this possible?

2002-04-01 Thread martinahingis

if ($payment_status = Completed)
if you do this your if statement is invalid
You should do

if ($payment_status == Completed)
I mean you should use double '=' inorder to say 'equals'.

Jim Hankins [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Here is a portion of a work in progress, I tested by sending the script
with
 a payment status of incomplete yet it still executed other portions of the
 code. Should it not have jumped out.  Or is my nested if invalid for some
 reason?

 if ($payment_status = Completed)
 {
 echo 1st if is passedbr;
 // check that txn_id has not been previously processed

 $db_conn = mysql_connect(localhost:/var/lib/mysql/mysql.sock, apache,
 xxx);
   mysql_select_db(telnetlabs, $db_conn);
   $query = select pp_txn_id from orders 
.where pp_txn_id ='.$txn_id.' ;
   $result = mysql_query($query, $db_conn);
   echo This is the result of 1st querybr;
   echo $result;
   echo br;
   $num_results = mysql_num_rows($result);
   echo $num_results;

 if ($num_results)
 {
 }
 else {

   echo 2nd if is passedbr;
   $query = select cust_email from customers 
.where cust_email = '$payer_mail' ;
   $result = mysql_query($query, $db_conn);
   $num_results = mysql_num_rows($result);

 if ($num_results)
 {
 }
 else
 {
 echo 3rd if is passedbr;
 $item_name=addslashes($item_name);
 $receiver_email=addslashes($receiver_email);
 $item_number=addslashes($item_number);
 $invoice=addslashes($invoice);
 $payment_status=addslashes($payment_status);
 $payment_gross=addslashes($payment_gross);
 $txn_id=addslashes($txn_id);
 $payer_email=addslashes($payer_email);
 $payer_status=addslashes($payer_status);
 $first_name=addslashes($first_name);
 $last_name=addslashes($last_name);
 $address_status=addslashes($address_status);
 $address_street=addslashes($address_street);
 $address_city=addslashes($address_city);
 $address_state=addslashes($address_state);
 $address_country=addslashes($address_country);
 echo $first_name;
 echo $last_name;
 echo $address_street;
 echo $address_city;
 echo $address_state;
 echo $address_status;
 echo $address_zip;
 echo $payer_status;
 echo $item_name;
 echo $receiver_email;
 echo $item_number;
 echo $invoice;
 echo $payment_status;
 echo $address_country;

 //$query = insert into customers values ('null', '.$first_name.',
 '.$last_name.', '.$address_street.', '.$address_city.' ,
 '.$address_state.', '.$address_status.', '.$payer_email.' ,
 '.$payer_status.', '.$payer_email.' , '.$txn_id.', '1');
 // check that receiver_email is an email address in your PayPal account
 // check that payer_email doesn't already exist in customer database
 // if exist, increment customer.balanace by 1
 // if not exist, create user and increment balance by 1
 // then send schedule email with userid and password
 // process payment
 // first stab does none of the processes above, just emails the customer
and
 us for testing
 mail ([EMAIL PROTECTED], order info, trim($mailcontent), From:
 [EMAIL PROTECTED], [EMAIL PROTECTED]);
 mail ($payer_email, Your Order, $custconfirmation, From:
 [EMAIL PROTECTED], [EMAIL PROTECTED]);
 }
 }
 }
 ?





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




[PHP] Re: FREE HOSTING

2002-04-01 Thread martinahingis

try http://free-php.cjb.net there is a list of free php, mysql hosts and
analysises of them

Dani [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I'm just wondering if anybody know if there is a free web hosting with
 MYSQL and PHP. I don't need a hugh space. mya be I need only 50Meg (for
 practise my PHP)

 thanks!

 regards,
 Dani




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




[PHP] Re: parse error, mysql select

2002-04-01 Thread martinahingis

Error is absolute.
Don't use  (double quotation mark) in yur queries. Use ' (single quot.)
instead

$query = SELECT DATE_FORMAT( exp_date, '%W, %M  %d, %Y') AS thedate from
tifrequest where user='$user' limit 1,1;

Because the preprocessor think that your string is finished when it sees a
double quot.
And use a colorful editor. that helps u seeing errors like this. :)

martina


Robert McPeak [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 When I execute from browser I get a parse error, but when I enter the
 query directly into a MySQL command prompt I get a successful return.
 Can anybody see the problem with this code:

 $query = SELECT DATE_FORMAT( exp_date, %W, %M
 %d, %Y) AS thedate from tifrequest where user='$user' limit 1,1;


 Thanks!  My eyes are shot!




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




Re: [PHP] header() question

2002-04-01 Thread martinahingis

I think the question is not the top of the page, the top frame of the
window. Isn't it?

If so you should use Javascript instead of PHP.
script language=JavaScript1.2
top.window.location.href=http://yoursite.com/yourpage.php;
/script

---
martina.

Erik Price [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 On Monday, April 1, 2002, at 01:49  PM, Patrick Hartnett wrote:

  So any use of header(Location=...) automatically does what amounts to
  a target=_top?  If so, then ignore this entire post, cuz that answers
  the question.  If not, does anyone know how to force a target=_top
  when using header(Location=...)?

 Why not just create an anchor ID at the top of the page, and then make
 the header argument point to that?  This will work on more browsers than
 _top anyway.  Like so:

 // this is the HTML page you want to point to
 !DOCTYPE xhtml PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 head
titleTest/title
!-- other head info goes in here --
 /head
 body
 a id=topofpage /


 !-- other content of page goes here --
 /body
 /html

 // and this is your PHP code
 header('Location: http://www.domain.com/testpage.php#topofpage');




 HTH,

 Erik




 

 Erik Price
 Web Developer Temp
 Media Lab, H.H. Brown
 [EMAIL PROTECTED]




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




[PHP] Re: class instance name

2002-04-01 Thread martinahingis

what a thing is the class instance name from within the class?!

---
martina.
Nate [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 How do you determine the class instance name from within the class?




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




[PHP] Re: Request for Feedback - Unsigned Right Shift Operator

2002-04-01 Thread martinahingis

CPU designers don't make their CPU's support an instruction like slau (shift
left arithmetic unsigned) for simplicity of instruction set architecture.

Anyway simplicity of instructions is not important for PHP. When one wants
to use , let them use it.

--

martina.


Jason Greene [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Hello All,

 One of the features that I have been working on for PHP5/Zend Engine 2
 is better unsigned value support for the language. This involves the
 addition of a new operator, '' (Unsigned Right Shift). It works the
 same as a normal right shift operator, except that it does not hold the
 sign during the shift.

 Example:

 13131 == -1
 13131 == 1

 Everyone is in agreement on the new operator, however, a few of us have
 had a discussion over whether we should add an equivalent ''
 operator. The main reason for this would be that it would make the
 language more consistent. However, the argument against adding it is
 that it is not necessary because there is no technical difference
 between  and 


 Feedback anyone?

 Thanks,

 -Jason






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




[PHP] Re: Nead Help With A Php Script

2002-03-31 Thread martinahingis


Alain Kumschick FrançOis Robert [EMAIL PROTECTED] wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 I need a php script that checks if the there is a cookie set with the
users
 username
 and if not
 it brings you to an other page and telling you that you are not loged in!

 thanks for any help


 alain kumschick
 [EMAIL PROTECTED]
 http://www.kumschicknw.com


//simply chech the username as a cookie
if(!isset($HTTP_COOKIE_VARS[username])
{
header(Location: loginerror.php); //no cookie forward to the
loginerror.php
}
else
{
//cookie exists. you should check whether the username is valid. besides
your code is going here
}


-
martina.



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




[PHP] Is it possible to call an external client or server program?

2002-03-31 Thread martinahingis

Is it possible to call an external program via PHP. The program will most
probably be in server.

My aim is to call a scanner input program and want the client to scan a
paper and upload it.

thanks for help.

martina.



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




Re: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread martinahingis

hmm..
very thanks Cal.

I don't have any problem with security settings or another client side
setting. Because actually I'm using PHP for an application (but not a web
application) just works for the machine which is the server or in the same
LAN with the werver. And all settings of their browsers are made by me. So
that i can make all settings  proper to do so. Also OS is win98 or maybe
win2000. Most scanner's user interfaces can absolutely do their job perfect
on scanning and sending the output to the caller. But the only problem here
I understand is that it's not possible to call an EXE file?


Cal Evans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Martina,

 If you mean, from within a browser, is it possible to invoke a program on
a
 client's machine then...yes,  with a caveat.  If the OS is windows, and
the
 program has a COM interface and the user has set the security settings to
a
 moronically low level, it is possible to invoke COM objects via either
 VBScript or JavaScript. (JSrcipt).

 It's not a good idea. From your side, since you have little or no control
 over it. From the users side, they have to lower their security settings
to
 allow you to do it.  Users who know that means won't want to. Those who
 don't will require a lot of hand holding.

 My $.02 worth. Hope you found an answer somewhere among the rant.  :)

 =C=

 *
 * Cal Evans
 * Journeyman Programmer
 * Techno-Mage
 * http://www.calevans.com
 *


 -Original Message-
 From: martinahingis [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 31, 2002 6:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Is it possible to call an external client or server
 program?


 Is it possible to call an external program via PHP. The program will most
 probably be in server.

 My aim is to call a scanner input program and want the client to scan a
 paper and upload it.

 thanks for help.
 
 martina.



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