Re: [PHP] PayPal: Instant Payment Notification

2002-04-27 Thread Gianluca Baldo

Hi all-
  Has anybody worked with PayPal's Instant Payment Notification?
 Not yet, but am about to.
we integrated paypal in phpauction. At paypal.com, one you register as 
developer, you have access to their documentation.
That's enough to get it working.

  How exactly does it work -- will the payer ever go to PayPal's site
  itself (and leave my site for a sec) or will all contact with PayPal's
  servers be handled by my script?
 No, the user doesn't 'leave' your site, all the processing goes on behind
 the scenes.
In our implementation, phpauction set up a form with hidden fields containing 
the data paypal expects to receive.
Once the user submit that form he goes to paypal and makes the payment.
In that form you pass to paypay a Confirm URL you want your users to be 
redirected after they do the payment and a Cancel URL where you want your 
users to be redirected if they press Cancel at peupal.

What you'll also have to do is to set up the IPN url, where paypal will POST 
the transaction result in the format described in the documentation.
Once your IPN script receives the POST from paypal, it will be able to check 
the transaction's result and act accordingly (tipically update some database 
tables).

I cannot pass you the entire code since it belongs to the non-GPL version of 
phpauction but will surelly post some pieces of code here if need it.

Cheers

Gianluca


  
  I have to write a system that enables payments via this service, but I'm
  low on documentation and this service is a new one for me.
 
  An overview of the process and pointers would be great!

 Paypal provides some scripts which looks self-explanatory.

-- 
Gianluca Baldo
Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
tel/fax +34 93 454 93 24
http://www.phpauction.org
http://www.gianlucabaldo.com

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




Re: [PHP] Poor results with GD

2002-04-16 Thread Gianluca Baldo

Hi  -
I recently used NetPBM libraries since a client was not satisfied with GD's 
results.

You may want to have a look at PHP Gallery, a package which uses NetPBM 
instead of Gd. I looked at it to get some idea on how to use NetPBM from PHP.
They have a comparison page:
http://www.menalto.com/projects/gallery/modules.php?op=modloadname=NetPbmVsGdfile=index

Cheers,

Gianluca

 
 I'm currently setting JPEG quality to 85%, hence the large file sizes.
 Normally, I'd be looking for better quality and file sizes about 70% of
 their current size.  Some of the originals are scanned directly from the
 painting, which yields very high quality, some are taken with a digital
 camera (I could live with poorer quality on these).

 I'm using some functions I found in 'PHP and MySQL web development' with
 some modifications, so JPEGs are generated from uploaded files and stored
 on the server through an HTML form interface.  Here's the core bit of the
 code:

 $src = ImageCreateFromJPEG($image);
 $dst = ImageCreate($tn_width,$tn_height);
 ImageCopyResized($dst, $src, 0, 0, 0, 0,
 $tn_width,$tn_height,$width,$height);
 ImageJpeg($dst, $path, $compression); //compression set to 85 here.
 ImageDestroy($src);
 ImageDestroy($dst);

 Mick


 -Original Message-
 From: Andrew Brampton [mailto:[EMAIL PROTECTED]]
 Sent: 15 April 2002 17:56
 To: Sear, Mick; [EMAIL PROTECTED]
 Subject: Re: [PHP] Poor results with GD


 They looked ok to me, but I don't know what the orginals looked like.

 But the problem might be that your JPeg quality is set lower than you would
 like. You can increase it be setting a parameter in ImageJPEG() or most
 likly whatever function you are using

 Andrew
 - Original Message -
 From: Sear, Mick [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 15, 2002 4:32 PM
 Subject: [PHP] Poor results with GD

  Not sure if anyone else uses GD much, but I've been experimenting with it
  and PHP recently and I've found I get large file sizes and very 'aliased'
  graphics.
 
  Can anyone suggest a fix/ alternative?
 
  You'll see what I mean if you look at www.msear.com/paintings/ where the
  images are currently all generated with GD (but not for long, I think!)
 
  Cheers,
  Mick
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Gianluca Baldo
Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
tel/fax +34 93 454 93 24
http://www.phpauction.org
http://www.gianlucabaldo.com

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




[PHP] [ANNOUNCEMENT] Phpauction 2.1 released

2002-01-29 Thread Gianluca Baldo

PHPAUCTION 2.1 has been released and is available in the downloads
section at http://phpauction.org .-

This release includes an installation script, edit live auctions,  post a question to
the seller. We have fixed bugs to make this a stable version.

Regards,

Gianluca

--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel./Fax +34 934549324
[EMAIL PROTECTED]
http://www.gianlucabaldo.com
http://www.phpauction.org


-- 
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] Please \n problem????

2002-01-12 Thread Gianluca Baldo

Dani -

D echo Result :\n;   - THIS DOESN'T GIVE ME A
D NEW LINE- WHY ?
If you look at the source code of your page you'll see a new line
there.
If you want a new line in the browser output, you must place a BR at
that point, not a \n since it's HTML.

Hope this helps.
Gianluca

D //CONNECT TO SERVER
D include(connect.inc);

D //CONNECT DATABASE
D include(select_db.inc);

D $query = select * from main_table where item_type = '$type' and class =
D '$class' ;
D $result = mysql_query($query);

D $row = mysql_fetch_array($result);

D echo ($row[item_id]\n); - THIS DOESN'T
D GIVE ME A NEW LINE EITHER, WHY ??

D while ($row = mysql_fetch_array($result))
D  {
D  echo $row[item_type] , $row[class];
D  }

?


D Any reply is greatly appriciated

D Regards,
D Dani





--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel./Fax +34 934549324
[EMAIL PROTECTED]
http://www.gianlucabaldo.com
http://www.phpauction.org


-- 
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] Looking for a function

2001-12-24 Thread Gianluca Baldo

VVP Hello, cannot find function to convert all dangerous symbols (spaces,dots
VVP etc) into %20 variant.
VVP Is there any standard, or i have to develop my own?
Look at urlencode(), it shoud be what you are lookingfor.

Cheers,

 Gianluca


--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel./Fax +34 934549324
[EMAIL PROTECTED]
http://www.gianlucabaldo.com
http://www.phpauction.org


-- 
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[2]: [PHP] Running WML (WAP services) under PHP

2001-12-09 Thread Gianluca Baldo

Try

?
header(Content-type: text/vnd.wap.wml;charset=iso-8859-1);
echo ?xml version=\1.0\?\n;
?

Cheers,

Gianluca


JD i think that php sends out headers showing that the page is html.not
JD sure bout this, but you might have to send a diff header..

JD -Original Message-
JD From: M [mailto:[EMAIL PROTECTED]]
JD Sent: Sunday, December 09, 2001 5:08 PM
JD To: [EMAIL PROTECTED]
JD Subject: [PHP] Running WML (WAP services) under PHP


JD Hello, I am trying to develop some WML apps using PHP.
JD To run WML apps into my local Apache (win98) server, I added

JD AddType application/x-httpd-php .wml

JD into httpd.conf. This works ok when calling directly from netscape
JD http://localhost/mywml.wml ,
JD treating script like a true PHP program.

JD BUT when writing a REAL WML app. (cards and so) and trying to run on
JD NOKIA simulator (by calling URL), it shows a parse error on line 1 (for
JD all scripts).
JD The same script, when executed in file mode on NOKIA sim (that is first
JD load .wml file and then press SHOW button) , works fine, proving the
JD error is not in script, but in way PHP interpret .WML pages.

JD I suspect PHP introduces some invisible code (just 1 byte?) or something
JD at beginning of .WML page.


JD Thanks for your attn.

JD Miguel



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






--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel./Fax +34 934549324
[EMAIL PROTECTED]
http://www.gianlucabaldo.com
http://www.phpauction.org


-- 
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] mkdir Question

2001-08-26 Thread Gianluca Baldo

Jeff
JO mkdir (/usr/www/users//blah/blah/$username, 0777);
JO it sets it to nobody instead of my username.
Nobody is the user runng the Apache process that's why it is the owner
of the directory.
You can chown the direcotry from your PHP script after you create
it or chmod the files you copy there.

Cheers,
   Gianluca

   
JO I'm then unable 
JO to delete or modify files in that directory. Is there a way around
JO this? Thanks.
JO Jeff Oien




--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel. +34 93454009 - +34 934549324
Fax. +34 934541979
@@ ICQ 47323154 @@
[EMAIL PROTECTED]
http://www.albasoftware.com
http://www.phpauction.org
http://www.gianlucabaldo.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]




Re: [PHP] php query for mysql table

2001-08-20 Thread Gianluca Baldo

You should use the like clause whch allows the use of wild cards %
and ?.

Have a look at the MySQL manual, it should be explained there.

HTH
   Gianluca

   
WS I am a newbie to php + mysql and wanted to ask for some help on a
WS particular item which I can't seem to find the right key in the
WS documentation.  I am trying to set up a simple QA system with an entry
WS page where one can select to either have all questions  answers from a
WS mysql database displayed or else search with a text field for only
WS those questions which contain a certain word(s).

WS Can someone tell me how to set in a query when trying to find records
WS in a mysql table that have a certain word or perhaps 2 or 3 words
WS (among others) ...? 

WS  I know about using SELECT and WHERE in order to find records which
WS match *exactly*, but am looking for something a bit different ...

WS Example:
WS The values of 3 records for the question field of the database might
WS be the following:

WS [1] How do you deal with anger?
WS [2] Ever been full of anger in your life?
WS [3] Is life always easy?

WS How can I set a PHP query with SELECT and WHERE to express the
WS following:

WS Which questions contain the word life? That is, have someone search
WS the database in the question field for records where the word life
WS is used as part of the question ...  The result then should return the
WS records 2  3 above

WS Any help is greatly appreciated. Thanks mucho.
WS God bless you with His grace and peace 
WS Wolfgang 

WS Looking for Biblical information? COME AND SEE! 
WS -- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
WS -- BibelCenter: http://www.bibelcenter.de 
WS -- Bookstore: http://www.worthy.net/BibelCenter/ 






[EMAIL PROTECTED]

BcnInédita
EURO RSCG INTERACTION
www.bcninedita.com
Planella, 39
08017 Barcelona
Tel.34 932 531 950 (directo 93 253 19 53)
Fax. 34 932 114 546 


-- 
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[2]: [PHP] Dnsquery

2001-08-17 Thread Gianluca Baldo

JH I think you need to assign it to a variable and then echo that:
JH $dnsquery = exec(dnsquery -h domain.net);
JH echo $dnsquery;

This is from the manual:
exec() executes the given command, however it does not output
anything

Use system instead.

Cheers,
   Gianluca

JH -Original Message-
JH From: J.Mueller, pro.vider.de GmbH [mailto:[EMAIL PROTECTED]]
JH Sent: 17 August 2001 09:29
JH To: '[EMAIL PROTECTED]'
JH Subject: [PHP] Dnsquery


JH Hello,

JH I've tried to execute the system function dnsquery, which works fine
JH from a shell:

JH % dnsquery -h domain.net
;; -HEADER- opcode: QUERY, status: NOERROR, id: 61611
JH ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
JH ;;  domain.net, type = ANY, class = IN
JH domain.net. 2D IN NSNS2.domain.net.
JH domain.net. 2D IN NSNS1.domain.net.
JH domain.net. 2D IN NSNS2.domain.net.
JH domain.net. 2D IN NSNS1.domain.net.
JH NS2.domain.net. 2D IN A 198.182.225.2
JH NS1.domain.net. 2D IN A 204.107.140.2

JH but not with PHP-functions, e.g.

JH system(dnsquery -h domain.net);
JH exec(dnsquery -h domain.net);

JH There is no output at all. I'm using FreeBSD 4.2 Server, Apache 1.3.11, PHP
JH 4.04

JH Does anyone have an idea how I can get this work?



[EMAIL PROTECTED]

BcnInédita
EURO RSCG INTERACTION
www.bcninedita.com
Planella, 39
08017 Barcelona
Tel.34 932 531 950 (directo 93 253 19 53)
Fax. 34 932 114 546 


-- 
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] Time problem

2001-08-08 Thread Gianluca Baldo

Pierre -
py In other words, how do you change this 997271630.08651
py in 08:14:32 ?
you can use date() in conjunction with mktime().
Have a look at the manual there are good examples and users comments there.

Cheers,
   Gianluca

[EMAIL PROTECTED]

BcnInédita
EURO RSCG INTERACTION
www.bcninedita.com
Planella, 39
08017 Barcelona
Tel.34 932 531 950 (directo 93 253 19 53)
Fax. 34 932 114 546 


-- 
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] mySQL query grief

2001-07-22 Thread Gianluca Baldo

Justin -
there's an error in your query. I think it should be:
$sql = SELECT * FROM staff WHERE id='$username';

Anyway, to see which is the problem just
?
  print mysql_error();
?
after  $result = mysql_query($sql);

HTH
   Gianluca

JF newbie to MySQL...

JF I get this error:
JF Supplied argument is not a valid MySQL result resource in /usr/local/
JF blah blah blah

JF From this query:
JF $username = juddy2;
JF $sql = SELECT * FROM staff WHERE id=.$username;
JF $result = mysql_query($sql);


JF However, this works okay:
JF $username = juddy2;
JF $sql = SELECT * FROM staff;
JF $result = mysql_query($sql);


JF So, I guess my WHERE... stuff is wrong.  I just want to retrieve the
JF whole row of information relating to a certain user (eg juddy2).  The
JF usernames are unique in the table, contained in a column called id.


JF Many Thanks in advance
JF Justin French




--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel. +34 93454009 - +34 934549324
Fax. +34 934541979
@@ ICQ 47323154 @@
[EMAIL PROTECTED]
http://www.albasoftware.com
http://www.phpauction.org
http://www.gianlucabaldo.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]




Re[2]: [PHP] SHA-1

2001-07-20 Thread Gianluca Baldo

Thanks Joe -
I also searched php.net for SHA-1 but didn't found that page.
I have had problems installing mhash libraries in my debian box so,
for nowt, I solved the problem with a javasript implementation
of the SHA-1 algorithm.

Anyway thanks for you help.
Cheers,
   Gianluca

   
JC Try the MHASH library. See http://www.php.net/manual/en/ref.mhash.php

JC HTH,

JC -- Joe

JC - Original Message -
JC From: Gianluca Baldo [EMAIL PROTECTED]
JC To: [EMAIL PROTECTED]
JC Sent: Thursday, July 19, 2001 5:25 PM
JC Subject: [PHP] SHA-1


 Hi all-
 I searched the mailing list archive but without success.
 What I am looking for is a PHP implementation of the SHA-1 algorithm.
 Does anybody know if it is available somewhere?

 Cheers,
Gianluca

 --
 ALBASOFTWARE
 C/ Mallorca 186 - 3º 1ª
 08036 Barcelona (Spain)
 Tel. +34 93454009 - +34 934549324
 Fax. +34 934541979
 @@ ICQ 47323154 @@
 [EMAIL PROTECTED]
 http://www.albasoftware.com
 http://www.phpauction.org
 http://www.gianlucabaldo.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]






--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel. +34 93454009 - +34 934549324
Fax. +34 934541979
@@ ICQ 47323154 @@
[EMAIL PROTECTED]
http://www.albasoftware.com
http://www.phpauction.org
http://www.gianlucabaldo.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] SHA-1

2001-07-19 Thread Gianluca Baldo

Hi all-
I searched the mailing list archive but without success.
What I am looking for is a PHP implementation of the SHA-1 algorithm.
Does anybody know if it is available somewhere?

Cheers,
   Gianluca

--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel. +34 93454009 - +34 934549324
Fax. +34 934541979
@@ ICQ 47323154 @@
[EMAIL PROTECTED]
http://www.albasoftware.com
http://www.phpauction.org
http://www.gianlucabaldo.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] [ANNOUCE] PHPAUCTION 1.0 is out

2001-07-04 Thread Gianluca Baldo

It is (finally!) available at http://www.phpauction.org -
Everyone interested in helping with the localization project,
translating to other languages than english is welcome!

Thanks
  Gianluca

--
ALBASOFTWARE
C/ Mallorca 186 - 3º 1ª
08036 Barcelona (Spain)
Tel. +34 93454009 - +34 934549324
Fax. +34 934541979
@@ ICQ 47323154 @@
[EMAIL PROTECTED]
http://www.albasoftware.com
http://www.phpauction.org
http://www.gianlucabaldo.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]




Re[2]: [PHP] Auction PHP Solution?

2001-06-28 Thread Gianluca Baldo

Hi -

MT There was some development on PHP-Auction, I did a custom-rolled one for a
MT client but it's not like e-bay.
Not yet!  (just joking) -

This is the status of phpauction:
- we are finally near to the first stable release
- the features are the basic feature needed by an auction package and
  many others will be implemented in the following version. Anyway
  it should not be difficult to add what you need in a cople of weeks.
- there are some sites using phpauction out there (i personally have
  some)... so if you peform a good test and make the necessary changes
  or customization you can use it.
  Le'ts say phpauction is a good starting point if you need an
  PHP/MySQL based auctions package.
  I have checked other packages but phpauction, with all its problems and
  lacks, is at the moment the most complete (my personal NOT impartial
  opinion).

You may want to check phpauktion.de -  it's a german version of the
package (i think they have an english translation too).
They took phpauction some months ago and added some features. I didn't
checked the package but someone told me they did a good job. One
problem: their site is in german.
They have a basic free version and a pro one which consists of
add-ons to the package. The add-ons are not free, they charge 500 DM
more or less.

If you need more information or have any question, contact me
personally at [EMAIL PROTECTED] -

Have a nice day

Gianluca


MT The client would be adding/removing items 
MT from the auction.
MT Miles

MT At 09:56 AM 6/26/01 -0600, Michael O'Neal wrote:
Hi,

Has anybody seen an ebay-like auction solution done in PHP?

Thanks,

mto


--

Michael O'Neal
Web Producer/ Autocrosser
ST 28 '89 Civic Si
-
  M   A   N   G   O
B  O  U  L  D  E  R
-
http://www.thinkmango.com
e- [EMAIL PROTECTED]
p- 303.442.1821
f- 303.938.8507


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




[EMAIL PROTECTED]

BcnInédita
EURO RSCG INTERACTION
www.bcninedita.com
Planella, 39
08017 Barcelona
Tel.34 932 531 950 (directo 93 253 19 53)
Fax. 34 932 114 546 


-- 
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] Batch Coding Help Please

2001-06-25 Thread Gianluca Baldo

Hi,
I do the following in a similar case:
- I have a table with the emails to send (the addresses)
- I run a PHP script as a cronjob every X minutes (15 in my case)
- the script sends up to 1000 e-mail and delete the corresponding entry from the
  table for each e-mail sent (you may want to simply mark as sent an
  address if it is the case).

This work fine for me.

Cheers,
   Gianluca

Kac I am building a custom e-mailer for one of my websites using PHP and MySQL, I 
Kac know there are loads out there already but my goal here is to learn this 
Kac coding myself so I can modify it to my needs as and when they change. 

Kac My list only has around 5000 subscribers at the moment and I have heard that 
Kac with large lists like this it is ideal to batch send the emails. So my 
Kac question is how do you batch code? 

Kac This is the code I have in place at the moment 

Kac $query=mysql_db_query($dbase,SELECT * FROM Subscribers, Members where 
Kac Subscribers.ListID='$ID' and Members.MID=Subscribers.MemberID);
Kac $num_rows=mysql_num_rows($query);

Kac for ($i=0; $i$num_rows; $i++)
Kac  {
Kac   mysql_data_seek($query, $i);
Kac   $array=mysql_fetch_array($query);
Kac   $Email=$array[Email];
Kac   mail($Email, $MsgTitle, $Message\n\n\n$Content, $Header);
Kac  }




[EMAIL PROTECTED]

BcnInédita
EURO RSCG INTERACTION
www.bcninedita.com
Planella, 39
08017 Barcelona
Tel.34 932 531 950 (directo 93 253 19 53)
Fax. 34 932 114 546 


-- 
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[2]: [PHP] php as cron

2001-06-22 Thread Gianluca Baldo


AB If I execute this from the shell ./pop it works OK.
AB But as a cron job I get an error message sent to my mail box
AB Your terminal lacks the ability to clear the screen or position the 
AB cursor.,
AB hence this 'clear' bit in my script to try to sort the problem but no joy.
I have had the same problem in some debian installations.
As far as I investigaed, it possibly has to deal with the TERM
parameter but finally I did solve the problem installing also a
copiled version of PHP an calling it like:

* * * * * php /var/www/path/to/script.php

Cheers,
   Gianluca
   
AB Any ideas?

AB Ajdin



AB On Thu, 21 Jun 2001, Joseph Tate wrote:

 Have you tried 'php FILENAME'?  Now, I don't know how you would pass
 parameters to it...
 
  -Original Message-
  From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 21, 2001 8:09 AM
  To: AJDIN BRANDIC
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] php as cron
 
 
  try etc.
 
  00,30 * * * * lynx -dump http://path.to.php.script  /dev/null
 
  Regards
 
  Johan
 
  
   Hi
  
   I have PHP installed as Apache module but I want to run a cron job.  I
   have .php script that works OK when executed through browser
  but is there
   any way I could execute it through a cron job.
  
   Ajdin
  
  
   --
   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]
 
 
 -- 
 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]
 
 



[EMAIL PROTECTED]

BcnInédita
EURO RSCG INTERACTION
www.bcninedita.com
Planella, 39
08017 Barcelona
Tel.34 932 531 950 (directo 93 253 19 53)
Fax. 34 932 114 546 


-- 
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] How to I convert the PHP variable back into Javascript?

2001-04-13 Thread Gianluca Baldo


SF   I have not been able to put the php variable back into javascript variable
SF for javascript scripting.  I doubt if it would work if I assign the php
SF variable to the html variable then have the javascript pick it up.
You don't have "HTML variables"... you have form's fields with a VALUE.

Do something like:

   INPUT TYPE=text NAME=firstname VALUE="? print $firstname; ?"

for all your fields.

Cheers,
   Gianluca



--
ALBASOFTWARE
C/ Mallorca 186 - 3 1
08036 Barcelona (Spain)
Tel. +34 93454009 - +34 934549324
Fax. +34 934541979
@@ ICQ 47323154 @@
[EMAIL PROTECTED]
http://www.albasoftware.com
http://www.phpauction.org
http://www.gianlucabaldo.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]




Re: [PHP] Headers

2001-03-17 Thread Gianluca Baldo

Clayton,
PHP has a function for that:

headers_sent
(PHP 3= 3.0.8, PHP 4 = 4.0b2)
headers_sent -- Returns true if headers have been sent
Description
boolean headers_sent (void)
This function returns true if the HTTP headers have already been sent, false otherwise.
See also header()

Cheers,
   Gianluca

CD I'm sure everyone's seen the following:

CD Warning: Cannot add header information - headers already sent by (output started 

CD But,
CD How can I add check to see if the header information has not been sent and add it 
if it hasn't (else just print without the header info)?


CD TIA!
CD Clayton Dukes




--
ALBASOFTWARE
C/ Mallorca 186 - 3 1
08036 Barcelona (Spain)
Tel. +34 93454009 - +34 934549324
Fax. +34 934541979
@@ ICQ 47323154 @@
[EMAIL PROTECTED]
http://www.albasoftware.com
http://www.phpauction.org
http://www.gianlucabaldo.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]




Re: [PHP] Need some help plz

2001-03-10 Thread Gianluca Baldo

Mick -

M Warning: Failed opening '/usr/local/apache/htdocs/mick/domain.php' for
M inclusion (include_path='') in Unknown on line 0
if you get this error it probably means you don't have permissions set
up correctly.
Check the owner of your apache process and set owner/permission for
your php files accordingly.

Cheers,
   Gianluca

--
ALBASOFTWARE
C/ Mallorca 186 - 3 1
08036 Barcelona (Spain)
Tel. +34 93454009 - +34 934549324
Fax. +34 934541979
@@ ICQ 47323154 @@
[EMAIL PROTECTED]
http://www.albasoftware.com
http://www.phpauction.org
http://www.gianlucabaldo.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]