[PHP] What is the 'cli' interface.

2005-03-03 Thread Daniel Guerrier
I am getting this error using ezpublish to import RSS
feeds.  Does anyone know what this means.

PHP is currently using the 'apache2handler' interface.
Make sure it is using the 'cli' interface.

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

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



[PHP] ezpublish question -- take 2

2004-11-04 Thread Daniel Guerrier
Has anyone used the latest version of ezpublish?

How did you learn how to use it?  Do you recommend
getting the book?



__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 

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



[PHP] ezpublish

2004-11-03 Thread Daniel Guerrier
Has anyone used the latest version of ezpublish

How did you learn how to use it?  Do you recommend
getting the book?



__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 

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



Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Daniel Guerrier
And how would I do 
1. Configure webserver to send the right headers for
.wmv files.
--- Marek Kilimajer [EMAIL PROTECTED] wrote:

 Daniel Guerrier wrote:
  I'm using this code to dynamically retrieve
 windows
  media files and send it to the browser.  I thought
 the
  cache header would prevent the file from being
 cached.
  
  The only problems is the .wmv file still ends up
 in my
  IE temp files folder.  How can I prevent this from
  happening?
 
 The headers have influence on the asx file, .wmv
 files are served by the 
 webserver (no php involved) and the webserver
 doesn't send no-cache headers.
 
 You need to either:
 
 1. Configure webserver to send the right headers for
 .wmv files.
 
 2. Use php to send .wmv files, you can then send the
 headers from php
 
  
  
  ?php
  require_once(../admin/constant.php);
  header(Content-Type: video/x-ms-wmv);
  header(Last-Modified:  . gmdate(D, d M Y
 H:i:s) .
   GMT);
  header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
  header(Cache-Control: no-store, no-cache,
  must-revalidate); 
  header(Cache-Control: post-check=0, pre-check=0,
  false);
  header(Pragma: no-cache);
  $file = DATAURL . /media/ . $_GET['mediafile'];
  ?
  ASX VERSION=3.0
  ENTRY
  REF HREF =?php echo $file; ? /
  /ENTRY
  /ASX
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


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

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



[PHP] Media file browser cache question --- second try

2004-09-19 Thread Daniel Guerrier
I'm using this code to dynamically retrieve windows
media files and send it to the browser.  I thought the
cache header would prevent the file from being cached.

The only problems is the .wmv file still ends up in my
IE temp files folder.  How can I prevent this from
happening?


?php
require_once(../admin/constant.php);
header(Content-Type: video/x-ms-wmv);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .
 GMT);
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Cache-Control: no-store, no-cache,
must-revalidate); 
header(Cache-Control: post-check=0, pre-check=0,
false);
header(Pragma: no-cache);
$file = DATAURL . /media/ . $_GET['mediafile'];
?
ASX VERSION=3.0
ENTRY
REF HREF =?php echo $file; ? /
/ENTRY
/ASX
---


I am streaming it.  That code is in an .asx metafile.
I assume it is supposed to work like a .ram for real
media.

Microsoft suggests using an asx file to stream media.
It does stream, I just do not want it to be cached in
my IE temp files.



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



[PHP] Browser caching problem.

2004-09-18 Thread Daniel Guerrier
I'm using this code to dynamically retrieve windows
media files and send it to the browser.  I thought the
cache header would prevent the file from being cached.

The only problems is the .wmv file still ends up in my
IE temp files folder.  How can I prevent this from
happening?

?php
require_once(../admin/constant.php);
header(Content-Type: video/x-ms-wmv);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .
 GMT);
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Cache-Control: no-store, no-cache,
must-revalidate); 
header(Cache-Control: post-check=0, pre-check=0,
false);
header(Pragma: no-cache);
$file = DATAURL . /media/ . $_GET['mediafile'];
?
ASX VERSION=3.0
ENTRY
REF HREF =?php echo $file; ? /
/ENTRY
/ASX


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

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



Re: [PHP] Browser caching problem.

2004-09-18 Thread Daniel Guerrier
I am streaming it.  That code is in an .asx metafile.
I assume it is supposed to work like a .ram for real
media.

Microsoft suggests using an asx file to stream media.
It does stream, I just do not want it to be cached in
my IE temp files.
--- Jason Wong [EMAIL PROTECTED] wrote:

 On Sunday 19 September 2004 07:12, Daniel Guerrier
 wrote:
  I'm using this code to dynamically retrieve
 windows
  media files and send it to the browser.  I thought
 the
  cache header would prevent the file from being
 cached.
 
  The only problems is the .wmv file still ends up
 in my
  IE temp files folder.  How can I prevent this from
  happening?
 
 Don't give them the file in the first place?
 
 If you're trying to prevent someone from saving the
 file and playing it back 
 at a later date then I think you'll need to stream
 the file. Have a look on 
 the MS site. Note that no matter what you do, if
 someone is determined enough 
 they'll still be able to capture the contents.
 
 -- 
 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-general
 --
 /*
 Indecision is the true basis for flexibility.
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



[PHP] Header list

2004-08-08 Thread Daniel Guerrier
I need to know what header to send when using readile
with real media and windows media.  Is there a list
that has all header when sending rich media and
images.

Thanks




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



[PHP] dynamic RAM file for real media

2004-08-05 Thread Daniel Guerrier
I am using PHP to dynamically create real audio links.
The question is I was creating one .ram file for each
real media file that I wanted to stream.  The .ram
files need to have absolute urls (which I do not
like).  I saw a few sites that use one .ram file but
pass it a variable http://url.ram?id=555.

Has anyone done this?
If so, how?



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Re: [PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Daniel Guerrier
Don't argue with machines, just give it what it wants.
Just put the session variable in it's own variable and
pass that to the sql statement.

$logon = $_SESSION['logname'];

$MembersDataQry = SELECT * FROM MembersData
 WHERE UserID='$logon';

--- Daniel Kullik [EMAIL PROTECTED] wrote:
 Hello again, Michael!
 
 You ought to read this:

http://de.php.net/manual/en/language.types.string.php#language.types.string.parsing
 
 
 Daniel
 
 Harlequin wrote:
  Could someone please help me with my syntax
 here...?
  
  $MembersDataQry = SELECT * FROM MembersData
  WHERE UserID='$_SESSION['logname']';
  
  I get an error on line 2 but can't seem to figure
 out what I've missed.
  
  The variable echoes fine so I know there's a
 string in there.
  
 
 -- 
 WWE e-commerce IT GmbH
 Eiffestrasse 462, D-20537 Hamburg
 Tel.: +49-40-2530659-0, Fax: +49-40-2530659-50
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 




__
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com

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



[PHP] gzip compression verification

2004-07-09 Thread Daniel Guerrier
I've enabled gzip compression of pages on my site.
The question is, how do I check the size of the page
being sent to verify that the page is being
compressed.

Danny



__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

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



Re: [PHP] after submitting, working with data on same page

2004-07-09 Thread Daniel Guerrier
You have the data in the $_POST global.
So submit it to _self as you already have and
if $_POST['calcentry'] is present and not null then do
your calculation 
then set the value of the sencond textarea to the
result.

--- Hull, Douglas D [EMAIL PROTECTED] wrote:
 I have my two html textarea fields followed by these
 two buttons.

form
 action=?=$_SERVER['PHP_SELF']? method=post
 br
input type=submit name=calcentry
 value=Calc Your Entry /input type=submit
 name=clearentry value=Clear Your Entry /
 /form
 I have textarea1 to type words into.  I have
 textarea2 for my results.  I have people type words
 in textarea1 and after hitting the calcentry
 button I want to reload the same page, go into
 my:

if ($calcentry) {...}

part of my code and do
 some calculations with php and mysql and put my
 output into textarea2.  But after submitting and
 re-loading the page my textarea1 field is empty.  So
 my first question is how do I keep the data in
 textarea1 so when I perform my submit I can do some
 calculations on it etc?  Then how can I place my
 results into textarea2.

So all I want is to type
 words into a textarea field, reload the same page,
 do some calcs on these words, and place the results
 into textarea.  So it amounts to having the exact
 same page but now I have my calculated results in
 the second textarea.  I have all my code for calcs
 etc. and it works fine.

Thanks for any help,
Doug
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


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

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



Re: [PHP] patRSS

2004-06-11 Thread Daniel Guerrier
try
http://magpierss.sourceforge.net/
--- Edward Peloke [EMAIL PROTECTED] wrote:
 Does anyone use patRSS for the rss feeds?
 

http://www.php-tools.net/site.php?PHPSESSID=99dd0269b03bee4046c3395d5561162
 1file=/patMisc/rss.xml
 
 I don't see much online about it.  It seems to work
 fine, but I now have to
 cycle through another array to pull out and format
 everything.
 
 Thanks,
 Eddie
 
  WARNING:  The information contained in this message
 and any attachments is
 intended only for the use of the individual or
 entity to which it is
 addressed.  This message may contain information
 that is privileged,
 confidential and exempt from disclosure under
 applicable law.  It may also
 contain trade secrets and other proprietary
 information for which you and
 your employer may be held liable for disclosing. 
 You are hereby notified
 that any unauthorized dissemination, distribution or
 copying of this
 communication is strictly prohibited.  If you have
 received this
 communication in error,  please notify
 [EMAIL PROTECTED] by E-Mail and then
 destroy this communication in a manner appropriate
 for privileged
 information.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



[PHP] $_FILES passed by value

2004-06-03 Thread Daniel Guerrier
If I pass a $_FILES to an object by value.  Does it
create a copy of the actual posted files as well?

In other words if I post a 2MB file to save.php and in
turn pass $_FILES to an object $file-fileis($_FILES);
Does that create 4MB of data in memory?

Thanks
Danny




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: [PHP] determining number of rows in a mysql table

2004-03-29 Thread Daniel Guerrier
select count(*) from tablename
--- Chris Wagner [EMAIL PROTECTED] wrote:
 this should be easy...
 
 how would one go about determining the number of
 rows in a mysql table,
 without actually wasting the time of querying for *.
 
 is this the best way?
 
 $result = mysql_query('SELECT * FROM tablename');
 $num_rows = mysql_num_rows($result);
 
 does this actually take up time searching?
 
 thanks.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: [PHP] transactions

2004-03-29 Thread Daniel Guerrier
yup - use transactions.
http://www.mysql.com/doc/en/COMMIT.html
--- Matthew Oatham [EMAIL PROTECTED] wrote:
 Hi,
 
 Is there an elegant way to recover from DB errors in
 MySQL using PHP, i.e. transactions and rolling back
 - basically I have an insert statement then an
 update statement. if the insert succeeds the update
 is run but if the update fails I want to undo the
 insert! 
 
 Any suggestions, I guess I could get the last
 inserted row id and perform an sql delete but is
 there a more elegant way?
 
 Cheers
 
 Matt


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Daniel Guerrier
if(mysql_num_rows($res))

returns count of rows returned.
if it 0 is false so it shouldn't execute the
conditional code
--- Ligaya Turmelle [EMAIL PROTECTED] wrote:
 I think it is because the query ran successfully and
 returns an empty set.
 So the pointer is still good.
 
 Respectfully,
 Ligaya Turmelle
 
 
 Ryan A [EMAIL PROTECTED] wrote in message

news:[EMAIL PROTECTED]
  Hi,
  I have this simple code in my php script:
 
  * * * * *
  $res = mysql_query(SELECT product_id, now()-1
 FROM .$tc._prods where
  cno=$cno AND product_id='$product_id' LIMIT 1);
 
  if($res)
   {
   $r = mysql_fetch_row($res);
   $product_id2   = $r[0];
   $th_pres= $r[1];
  echo debug echo;
   }else {echo No results, sorry;}
  * * * * *
 
  its working great when the data actually exists
 but when there are no
  matches it still executes the if($res) part
 instead of
  displaying No results, sorry.
  Why is that? or am I using the syntax wrong?
 
  Thanks,
  -Ryan
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: [PHP] Running Apache in one machine and php in another

2004-02-06 Thread Daniel Guerrier
Make it a web service and use SOAP or XML-RPC

http://phpsoaptoolkit.sourceforge.net/phpsoap/
--- Mrs. Geeta Thanu [EMAIL PROTECTED] wrote:
 Hi Jason,
 Thank you for your reply.
 This is an requirement in bioinformatics lab where
 they want to submit a
 huge genome sequence as a input to a program ( say
 in c) and get the
 result and display.
 
 Now i want this c program in another high end
 machine because it needs
 lot of computations, which is not possible in sun
 machine where i
 installed apache+PHP.
 
 Now I want the PHP script, like CGI has to get the
 genome from the browser
 of a user and send to the machine where C program is
 running and again get
 the results and show as output.
 
 Please reply whether this is possible.
 
 Thank u
 Geetha
 
 On Fri, 6 Feb 2004, Jason Wong wrote:
 
  On Saturday 07 February 2004 02:57, Mrs. Geeta
 Thanu wrote:
 
   I have configured Apache webserver executing PHP
 scripts on sun machine
   and everything is  working fine.
  
Now I want the web server to pass on the PHP
 executions to
   another machine and once done should get the
 result and display it.
  
   Is it possible .
 
  Depends on what you really want to do. What
 problem are you trying to solve?
 
  --
  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-general
  --
  /*
  The trouble with computers is that they do what
 you tell them, not what
  you want.
  -- D. Cohen
  */
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit:
 http://www.php.net/unsub.php
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Re: [PHP] Register Globals is_upload_file

2004-01-27 Thread Daniel Guerrier
http://us3.php.net/features.file-upload
--- bill [EMAIL PROTECTED] wrote:
 I'm converting old code to work with Register
 globals turned off in php.ini.
 With it on, is_upload_file($filename) works fine but
 when turned off doesn't
 work at all.
 
 What am I missing.. Help me please !!
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



Re: [PHP] Thumbnails in database

2004-01-17 Thread Daniel Guerrier
Why create thumnails?  You can resize the images on
the fly when needed.
--- Kevin Waterson [EMAIL PROTECTED] wrote:
 I am storing some images in a database. No problems
 there.
 But how can I create a thumbnail do store in the db
 also
 without having to create the thumbnail image on the 
 file system first?
 
 Kind regards
 Kevin
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Re: [PHP] how to determine if shopping cart has been abandoned?

2003-12-11 Thread Daniel Guerrier
Why not just maintain carts for users with accounts
and maintain them indefinately.  Users with out
accounts can have there carts stored in a session and
will become invalid when the session expires.
--- Chris W. Parker [EMAIL PROTECTED] wrote:
 Hey there everyone.
 
 I haven't had time much to work on my cart program
 recently but I was
 just thinking about abandoned carts and can't figure
 something out
 completely.
 
 How do you determine if a shopping cart has been
 abandoned or not?
 
 What I am thinking is that when the customer adds an
 item to their cart
 an entry is made in a db table. That means a cart is
 created, and that's
 about as far as I get. ;P
 
 Actually that's not totally true, so let me
 continue.
 
 The only reason I can think of to determine if a
 cart has been abandoned
 or not would be based on how old the shopping cart
 is. That is, when it
 was last modified (had a product
 added/modified/deleted from it). But
 who's the say that the customer that created that
 cart is not going to
 come back to the site at some point and then
 checkout?
 
 So then we have to decide how long an unmodified
 cart is considered
 abandoned as opposed to active. Let's make that time
 1 day (24-hours).
 
 Now let's imagine that there are four abandoned
 carts in the database.
 Now what do we do? Does the program automatically
 delete the carts after
 a certain (definable) period of time, i.e. 7 days?
 OR do we allow the
 merchant to manually delete the carts at any point
 they want? And how do
 you determine your abandoned cart rate? That is, do
 I take a survey of
 the db evey week to see how many abandoned carts I
 have and then average
 those results?
 
 The problem I see is that a cart could be considered
 abandoned for 4
 days but then become active again because the
 customer has come back to
 it and has added more products to it. In this case
 I'd say it was never
 abandoned in the first place and in which case it
 would be innacurate to
 include it your abandoned cart total.
 
 WHAT TO DO?
 
 A BIT CONFUSED I AM!
 
 
 
 Thanks,
 Chris.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Daniel Guerrier
When you make a file using data from what source?
--- Bas [EMAIL PROTECTED] wrote:
 Any help appreciated.
 
 Regards,
 
 Bas
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] php IDEs

2003-10-24 Thread Daniel Guerrier
zend.com has one
and PHPEdit

use what you like.
--- Lai, Kenny [EMAIL PROTECTED] wrote:
 can anyone recommend a good, and -free- PHP ide?
 
 thanks
 kenny
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Daniel Guerrier
http://us3.php.net/manual/en/function.addcslashes.php
--- Bas [EMAIL PROTECTED] wrote:
 A textarea.
 Daniel Guerrier [EMAIL PROTECTED] wrote in
 message

news:[EMAIL PROTECTED]
  When you make a file using data from what source?
  --- Bas [EMAIL PROTECTED] wrote:
   Any help appreciated.
  
   Regards,
  
   Bas
  
   -- 
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit:
 http://www.php.net/unsub.php
  
 
 
  __
  Do you Yahoo!?
  The New Yahoo! Shopping - with improved product
 search
  http://shopping.yahoo.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] PHP not remembering sessions

2003-10-23 Thread Daniel Guerrier
Use
$_SESSION['var']

instead of

$_SESSION[var]
--- Golawala, Moiz M (IndSys, GE Interlogix)
[EMAIL PROTECTED] wrote:
 Hi All, 
 
 I have a problem with PHP not remembering sessions.
 for example:
 
 in page1.php:
 
 ? session_start();
 $_SESSION[var] = Please help; ?
   form action=sessionTest2.php method=post
   input type=text name=loopCount size=21,
 maxlength=20/td 
   input type=submit value=Submit/td   
 
 
 in page2.php
 ? session_start();
 echo $_SESSION[var];
 echo $_POST[loopCount];
 ?
 
 what I see above is only data for loopCount. I am
 not able to see the Please help on page2
 
 I noticed that 2 cookies were created one for each
 session start. When I opened one of the cookies, I
 noticed that the data Please help was in the
 session cookie. Somehow php thinks a session is not
 already created and starts a new session on
 page2.php.
 
 my php.ini file has:
 register_globals = off
 session.use_cookies = 1
 session.use_only_cookies = 1
 session.auto_start = 0
 session.gc_maxlifetime = 1440
 
 Please can someone help me. I am not sure what I am
 doing wrong? Maybe it is some configuration that is
 causing this issue. Any help appreciated.
 
 Thanks,
 moiz
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Daniel Guerrier
The second page should be

?php
session_start();
 echo { $_SESSION['foo'] . BR\n);
 echo { $_SESSION['bar'] };
?

you're missing the session_start()

You need it on every page that you plan to use session
on.  

--- John Nichel [EMAIL PROTECTED] wrote:
 Shaun Campbell wrote:
  I've got a problem getting sessions to work and I
 wondered if anyone could
  offer any advice.
  
  The example I am using is to get one page to set
 variables in a session and
  then use another page to retrieve them.  I am
 using 4.3.4RC2 and prior to
  that 4.3..3 on Win2k with IE6 and Apache 1.3.22.
  
  The code is:
  
  page1.php
  --
  ?php
   session_start();
  
   $_SESSION['foo'] = 'Hello';
   $_SESSION['bar'] = 'World';
  
   ?
  HTML
  HEAD
  TITLE
  /TITLE
  /HEAD
  BODY
  
  Variables set in session - hopefully???
  
  ?php
   echo foo = {$_SESSION['foo']}BR;
   echo bar = {$_SESSION['bar']};
  ?
 
 Get rid of the foo = and the bar =.  when you
 use the single equals 
 sign, you're setting value
 
 ?php
  echo { $_SESSION['foo'] . BR\n);
  echo { $_SESSION['bar'] };
 ?
 
  form action=page2.php method=post
  input type=submit name=submit value=Page 2
 /
  /form
  
  /BODY
  /HTML
  
  page2.php
  --
  ?php
   session_start();
   echo foo = {$_SESSION['foo']};
   echo bar = {$_SESSION['bar']};
  ?
 
 Same here
 
 ?php
  echo { $_SESSION['foo'] . BR\n);
  echo { $_SESSION['bar'] };
 ?
 
  On page 1 I am seeing the session variables
 displayed correctly i.e. Hello
  World and I can see a session file created in my
 temp directory with the
  correct values in there.  However, when I display
 page 2 the variables are
  always displayed blank and what seems to happen is
 that a new empty session
  file is created in my temp directory.  It's as
 though the second page is not
  related to the same session somehow.  I've also
 tried lots of other examples
  from books and on the net and I still can't get
 sessions to work.
  
  Am I doing something wrong in connecting the two
 pages although I don't
  close the browser down at all between the two?
  
  Any ideas would be greatly appreciated.
  
  Thanks
  
  Shaun Campbell
 
 
 
 -- 
 By-Tor.com
 It's all about the Rush
 http://www.by-tor.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Daniel Guerrier
Your right :)

I think he's using the brackets instead of parenthesis
in the echo's.
Change the {} to ()

--- John Nichel [EMAIL PROTECTED] wrote:
 Daniel Guerrier wrote:
  The second page should be
  
  ?php
  session_start();
   echo { $_SESSION['foo'] . BR\n);
   echo { $_SESSION['bar'] };
  ?
  
  you're missing the session_start()
  
  You need it on every page that you plan to use
 session
  on.
 
 He has session_start() on page two.
 
 snip
 
 page2.php
 --
 ?php
  session_start();
  echo foo = {$_SESSION['foo']};
  echo bar = {$_SESSION['bar']};
 ?
 
 Same here
 
 ?php
  echo { $_SESSION['foo'] . BR\n);
  echo { $_SESSION['bar'] };
 ?
 /snip
 
 -- 
 By-Tor.com
 It's all about the Rush
 http://www.by-tor.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Daniel Guerrier
It should be:
echo $_GET['username'];

You shouldn't have the dollar sign in the brackets.
$ represents a variable the entire $_GET['username']
is the variable.


--- Frank Tudor [EMAIL PROTECTED] wrote:
 I have a URL including variables...  It looks like
 this:
 

http://registration.php?username=11[EMAIL PROTECTED]
 
 But I can't pullit into the next page's form
 
 Here is what is in the form and other things I have
 tried:
 
 $username = $_HTTP_POST_VARS['username'];
 
 echo $_GET['$username'];
 
 echo $_POST['$username'];
 
 This page sumbits with PHP_SELF if that helps with
 this puzzle.
 
 Can someone tell me what I'm doing wrong?
 
 Also I do have an include file that looks for
 session
 information but Ihave disabled it to see if I can
 pass
 variables.
 
 Frank
 
 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product
 search
 http://shopping.yahoo.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Daniel Guerrier
Who keeps telling people to use :)
$_GET[$username]

it should be $_GET['username']
$_GET is a key value pair array.
the key is the name of the html form variable in this
case username and the value is the value entered in
the form.

 
--- Adrian [EMAIL PROTECTED] wrote:
 lol variables in quotes - especialli when there is
 only the variable
 are really ugly.
 you should use $_GET[$username]...
 
  Use double quotes:
  $_GET[$username];
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] Re: what is the best PHP editor?

2003-10-13 Thread Daniel Guerrier
http://www.phpedit.net

It's good.
How good, is up to you.

--- Rob Adams [EMAIL PROTECTED] wrote:
 I like EditPlus too, but recently I've been using
 UltraEdit.
 http://www.ultraedit.com/
 $35 registration.  Has great column mode support.  I
 use the macros and
 templates all the time.  Has a word file for PHP.
 
   -- Rob
 
 
 
 Dougd [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I currently use EditPlus - and like it -- is there
 anything else out there
  that is better and still reasonably priced.
 
  Thanks.
 
  -Doug
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] session experation

2003-10-09 Thread Daniel Guerrier
The session will die on browser close.  What you are
asking for is how to use cookies.
You can set a cookie and use the information in that
to determine user functionality

http://us2.php.net/manual/en/function.setcookie.php

--- Sam Folk-Williams [EMAIL PROTECTED] wrote:
 Hi,
 
 I want to extend the length of a session based on
 the existance of a
 variable beyond the closing of the browser.
 Basically, I've got a restricted
 intranet where staff have to log-in and I want to
 add a remember me
 option. If they check off the remember me box, then
 the session will be set
 to expire in one year instead of as soon as the
 browser closes. Is there a
 way to do this without altering the php.ini file?
 (I'm in a shared hosting
 env and don't think I can alter that file).
 
 Or, is there a better way to acheive this result?
 
 Thanks,
 
 Sam
 
 -- 
 Sam Folk-Williams
 Service Team Leader/Webmaster
 Rise, Inc -- Creative Partnerships South
 (952) 884 8330 (V);  (952) 884 8371 (F)
 www.rise.org
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [PHP] Verry strange GET behaviour

2003-10-07 Thread Daniel Guerrier
you need to configure your webserver recognize .cgi as
a file to run the php interpreter against.

i.e  do whatever you did to make .php work again for
.cgi
--- John Wilcox [EMAIL PROTECTED] wrote:
 On the topic of passing args, can someone please
 explain to me why I'm unable to use $_GET or $_POST
 if
 my php script is run as a .cgi?  Basically, I have a
 simple html input form that has:
 
 form name=testform action=test.cgi
 method=GET
 input type=text name=textbox
 input type=submit value=Submit
 /form
 
 and a simple php script in a file called test.cgi
 which looks like:
 
 #!/usr/local/bin/php
 
 ?php
 print $_GET['testbox'];
 ?
 
 Now, if I rename this script to test.php, everything
 works fine, but not while run as a cgi.  I have no
 such problems when implementing the exact same code
 using Perl, so I'm thinking that php requires a
 different method of obtaining args when run as a
 cgi. 
 If anyone can tell me the method, I would greatly
 appreciate it.   Thanks,
 
 John
 
 --- Chris Shiflett [EMAIL PROTECTED] wrote:
  --- Ben Edwards [EMAIL PROTECTED] wrote:
   Been having a problem accessing a variable that
 is
  passed on a URL.
  
  This question is asked several times a week.
  
  You have register_globals disabled, and if you are
  asking this question, you
  need to leave register_globals disabled. Use
  $_GET['_section'] to access your
  variable.
  
  Hope that helps.
  
  Chris
  
  =
  My Blog
   http://shiflett.org/
  HTTP Developer's Handbook
   http://httphandbook.org/
  RAMP Training Courses
   http://www.nyphp.org/ramp
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit:
 http://www.php.net/unsub.php
  
 
 
 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product
 search
 http://shopping.yahoo.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: Fwd: Re: [PHP] How to hide url on a php link NOT post...

2003-07-11 Thread Daniel Guerrier
Umm.. 
Maybe you should use sessions.

--- Mark [EMAIL PROTECTED] wrote:
 --- Jeff Harris [EMAIL PROTECTED] wrote:
  On Jul 10, 2003, Joey claimed that:
  
  |How can I hide this link so value can't be
 changed?
  |I don't want to change anything at the server
 level, and its not
  from a
  |form so I cant do a post -vs- a get.
  |
 

|http://www.abcd.com/popup_SearchRepSet.php?searchby=cust_nosearch=1value=WOR032
  |
  |Thanks !
  |
  
  #1) [Not PHP] Make it a post that looks like a
 link. See previous
  posting
  at
 

http://marc.theaimsgroup.com/?l=php-generalm=105597453308214w=2
 
 He said it's not a form, so he can't change the
 method to POST.
 
  
  #2) [Not PHP] If the values will never change, try
  http://tinyurl.com. If
  you're keeping track of referrals, it might mess
 up your
  statistics.
 
 Also, this does not hide the URL once it's been
 clicked. it expands
 it, and allows someone to see the variables, which
 can then be
 changed and resubmitted.
 
  
  #3) [Not PHP] Make that link inside a frame. One
 frameset would
 be
  invisible, the other would be the link.
 
 Not quite sure how this would work. If I can click
 on the link, I
 can see (and copy) the full URI.
  
 He might want to look into cURL and
 libcURL(http://curl.haxx.se/libcurl/php/) I believe
 there are tools
 there for doing a POST through a standard clickable
 URL.
 
  
  -- 
  Registered Linux user #304026.
  lynx -source
 http://jharris.rallycentral.us/jharris.asc | gpg
  --import
  Key fingerprint = 52FC 20BD 025A 8C13 5FC6  68C6
 9CF9 46C2 B089
  0FED
  Responses to this message should conform to RFC
 1855.
  
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit:
 http://www.php.net/unsub.php
  
 
 =
 Mark Weinstock
 [EMAIL PROTECTED]
 ***
 You can't demand something as a right unless you
 are willing to fight to death to defend everyone
 else's right to the same thing.
 ***
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: [PHP] Date Problem - Last Day Of Month

2003-03-31 Thread Daniel Guerrier
change 
for ($i=1; $i=12; $i++)

to


for ($i=1; $i12; $i++)
--- Vinesh Hansjee [EMAIL PROTECTED] wrote:
 Hi there, can anyone tell me how to fix my code so
 that on the last day of
 the month, my code doesn't repeat the months...
 What the code suppose to do is, makes a drop down
 box from which you can
 select the month, and if its the current month
 the box is already selected.
 
 select name=month
 
 ?
 
 for ($i=1; $i=12; $i++) {
  if ($i == date(m)) {
   print option selected value=\. $i . \ .
 date(F,mktime(0,0,0,$i,date(d),date(Y))) .
 /option;
  } else {
   print option value=\. $i . \ .
 date(F,mktime(0,0,0,$i,date(d),date(Y))) .
 /option;
  }
 }
 
 ?
 
 /select
 
 Thanks
 Vinesh
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: [PHP] Help Cookies

2003-03-29 Thread Daniel Guerrier
http://www.php.net/manual/en/function.setcookie.php

You can set the expire date to be far of into the
future.
--- Haseeb Iqbal [EMAIL PROTECTED] wrote:
 hi
 how can i set the cookies life to non expireable
 and what action should i take when the user signs
 out?
 Regards.
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



[PHP] webeditor

2003-03-28 Thread Daniel Guerrier
Does anyone know of an open source webeditor that I
can use to enter information into a text area field.
I have a custom CMS and I would like to add webeditor
functionality to the textarea fields

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: [PHP] again: IIS vs Apache

2003-03-26 Thread Daniel Guerrier
The the LAMP platform is supposed to more stable but 
If it ain't broke why fix it?

--- [EMAIL PROTECTED] wrote:
 Hi, I'm new here. I imagine that this question was
 made a lot of times in this 
 list, but reading the archive i couldnt find a
 recently answer to this 
 question: 
 
I want to convince my new lab partners (and
 director) to migrate our PHP 
 site (over 1000 hits a day) to Apache/Linux. Could
 you give me some actual 
 arguments or site to tell them? Is the Apache PHP
 module really better  than 
 the isapi module for IIS. 
 
 thanks in advance. Matts
 
 
 
 -
 This mail sent through IMP:
 http://mail.info.unlp.edu.ar/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: [PHP] Yarrrrgggghhhhh || Simplest php question in existence........

2003-03-04 Thread Daniel Guerrier
Or

$row = mysql_fetch_objects()

then use $row-fieldname;
--- Joel Colombo [EMAIL PROTECTED] wrote:
 not mysql_fetch_array unless u need those int
 indexes.
 mysql_fetch_assoc is the same thing but does not
 index the integer value,
 just the string field name.
 
 Joel
 
 
 Leif K-Brooks [EMAIL PROTECTED] wrote
 in message
 news:[EMAIL PROTECTED]
  Use mysql_fetch_array instead of mysql_fetch_row.
 
  CF High wrote:
 
  Hey all.
  
  Basic question here:
  
  How can I refer to a query result set as
 $result['field_name'] rather
 than
  $result[0]?
  
  So, I'm looking for ? echo $result['field_name']
 ? -- just can't seem
 to
  get the right syntax.
  
  -- clueless
  
  
  
  --
  
  
  
  
  
  
 
  --
  The above message is encrypted with double rot13
 encoding.  Any
 unauthorized attempt to decrypt it will be
 prosecuted to the full extent of
 the law.
 
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



[PHP] Maintain and ' in html textfields

2003-03-04 Thread Daniel Guerrier
If I have text containing quotes, single or double in
my database, and I try to set the text as a value for
my html text field.  The quote in the text will
prematurely close the value= or value='' html and
cut of the remainder of the text.  How can I prevent
this.
I curently have this:

input name=title type=text id=title size=100
maxlength=255  ? echo( value=\ .
stripslashes($row[0]) . \); ?

If I try to set the value to - bla bla something
I'll get bla bla

If I use value='' then the same happens for bla bla 'something'

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [PHP] Maintain and ' in html textfields

2003-03-04 Thread Daniel Guerrier
I forgot to mention that I'm use add and stripslash on
the data so magin quotes wouldn't help.  The problem
is the  from the text is closing the  from the html.

--- Bryan Lipscy [EMAIL PROTECTED] wrote:
 Look up magic quotes in the docs.

http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
 
 
 
 The docs are mmm mmm good.
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [PHP] Maintain and ' in html textfields - REPLY

2003-03-04 Thread Daniel Guerrier

I forgot to mention that I'm use add and stripslash
on
the data so magic quotes wouldn't help.  The problem
is the  from the text is closing the  from the
html.
 
 --- Bryan Lipscy [EMAIL PROTECTED] wrote:
  Look up magic quotes in the docs.
 

http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
  
  
  
  The docs are mmm mmm good.
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: [PHP] addslashes(): Is it multi-byte safe?

2003-03-01 Thread Daniel Guerrier
why not try it and let us know.
--- Jean-Christian Imbeault [EMAIL PROTECTED]
wrote:
 Is addslashes() multi-byte safe?
 
 I will bu sing it to escape multi-byte input and
 wouldn't want it to 
 mangle anything...
 
 Thanks,
 
 Jc
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: [PHP] Restate: using php to rotate ad banners

2003-02-27 Thread Daniel Guerrier
Don't reinvent the wheel :)

http://www.phpadsnew.com/one/
--- Joseph Bannon [EMAIL PROTECTED] wrote:
 Anyone? Reply?
 
 
 I recently created some scripts to rotate ad banners
 on my site. One script is called show.php, which
 serves the banner. The other is called click.php,
 which redirects the people to the proper site for
 the banner they clicked on.
  
 Some people have noticed that when they click on the
 banner, they go to another site. Others have noticed
 that they just get returned back to the page that
 they just were at. I test it without any problems.
  
 I have been doing the redirecting using cookies. The
 script show.php puts the cookie on their computer.
 The script click.php gets the cookie and redirects
 them
 to the proper place when clicked. Should I be using
 cookies or sessions to do this? I think the problem
 is that some people have their browser set to not
 accept cookies which is why they get directed to
 other
 places.
  
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread Daniel Guerrier
http://www.zend.com/manual/function.date.php
--- CF High [EMAIL PROTECTED] wrote:
 Hey all.
 
 Easy question here (can't find the answer in php
 manual)
 
 In Cold Fusion I'm able to format a given numerical
 month value, say the
 third month, as #MonthAsString(3)# and it returns
 March
 
 What's the equivalent in PHP?
 
 Thanks for any ideas..
 
 --Noah
 
 --
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: [PHP] phpmyadmin duplication of sql

2003-02-24 Thread Daniel Guerrier
Duplicate column name 'y'
Back

It means what it said.  You are trying to create a
table with two columns with the same name.

--- Michael Gaab [EMAIL PROTECTED] wrote:
 i am using the phpmyadmin interface to develop a
 small web based
 application.
 when i create a table i get the following error.  
 for some reason the query
 inserts a duplicate.
 
 any help appreciated,  mike
 
 Error
 
 SQL-query :
 
 CREATE TABLE `t2` (
 
 `y` VARCHAR( 5 ) NOT NULL ,
 `y` VARCHAR( 5 ) NOT NULL
 )
 
 MySQL said:
 
 
 Duplicate column name 'y'
 Back
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



[PHP] Keep cariage returns

2003-02-24 Thread Daniel Guerrier
Is it possible to maintain the carriage returns in a
database insert.  When I input data from a textfield
with returns into the database, it is lost on a
subsequent select and print.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



[PHP] mcrypt dll's for php 4.3.x on windows

2003-02-23 Thread Daniel Guerrier
Hello folks,

I found a working version of the php_mcrypt.dll and
libmcrypt.dll for php 4.3.x. It may working on earlier
versions, but I don't know for sure.

You can download it from:

http://home.earthlink.net/~dguerrier/data/mcrypt.zip

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



[PHP] php_mcrypt.dll

2003-02-20 Thread Daniel Guerrier
I'm trying to use the mcrypt function on winXP using
php 4.3.1 and IIS 5.  First the dll would not load but
I got past that by placing the libmcrypt.dll in my
system32.  Now it loads but when I try to use mcrypt I
get 

Warning: mcrypt_encrypt(): Module initialization
failed in
E:\IIS\wwwroot\savehiphop\admin\access\encrypt.php on
line 6

I don't think it's the code, it's pretty simple.
$key = longencrytionkey;
$text = danny;
echo($text . br);

$newtext = mcrypt_encrypt(MCRYPT_BLOWFISH,$key,
$text, ecb);
echo($newtext);


How do I get mycryt extension to work properly on
windows?


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




[PHP] Redirect without header or javascipt

2003-02-18 Thread Daniel Guerrier
Is there any to redirect in php with using header()
and without the use of javascript?

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




[PHP] Keeping site metrics

2003-02-14 Thread Daniel Guerrier
Can someone direct me to a tutorial or provide insight
on how to track site vistors usage.
This would include

Number of visits boken down by page
Average time spent per visitor
Total page views and Unique visitors.

Thanks

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread Daniel Guerrier
Paste into notepad, the copy the text from notepad. 
Notepad should remove the high ASCII text.
--- Brent Baisley [EMAIL PROTECTED] wrote:
 I think you have posted before and probably didn't
 get an answer. I'm 
 not going to give you an answer (because I don't
 have one), but perhaps 
 I can point you in the right direction.
 Look at http://www.w3.org/TR/REC-html40/charset.html
 and see if that 
 helps you. Below is a paragraph I pulled from it.
 
 The document character set, however, does not
 suffice to allow user 
 agents to correctly interpret HTML documents as they
 are typically 
 exchanged -- encoded as a sequence of bytes in a
 file or during a 
 network transmission. User agents must also know the
 specific character 
 encoding that was used to transform the document
 character stream into a 
 byte stream.
 
 
 On Tuesday, October 29, 2002, at 02:20 PM, a.h.s.
 boy wrote:
 
  I'm working on a PHP-based CMS that allows users
 to post lengthy  
  article texts by submitting through a form. The
 short version of my  
  quandary is this: How can I create a conversion
 routine that reliably  
  substitutes HTML-acceptable output for high-ASCII
 characters pasted  
  into the form (from a variety of operating
 systems)?
 
 --
 Brent Baisley
 Systems Architect
 Landover Associates, Inc.
 Search  Advisory Services for Advanced Technology
 Environments
 p: 212.759.6400/800.759.0577
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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




Re: [PHP] Sessions with register_globals = off

2002-09-06 Thread Daniel Guerrier

Here you go

http://www.zend.com/manual/function.session-is-registered.php
--- Mauricio Cuenca [EMAIL PROTECTED] wrote:
 Hello,
 
 I'm working with register_globals turned off. I'm
 setting this session
 cookie:
 
if ($nresult) {
   if (mysql_numrows($nresult)) {
   session_start();
  $_SESSION['auth'] = 'TRUE'; } }
 
 And then I'm checking if the cookie is set, but it
 doesn't work:
if ($_SESSION['auth'] == 'TRUE') {
   show_menu(); }
 
 Is there any error on my code ? What am I doing
 wrong ?
 I read this on http://www.php.net/release_4_1_0.php:
 Another neat trick is that creating new entries in
 the $_SESSION array will
 automatically register them as session variables, as
 if you called
 session_register(). This trick is limited to the
 session module only - for
 example, setting new entries in $_ENV will *not*
 perform an implicit
 putenv().
 
 That's what I am not using
 sessione_register($variable).
 
 TIA,
 
 _
 Mauricio Cuenca
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




[PHP] upload file

2002-08-25 Thread Daniel Guerrier

This should be very simple but it isn't working.

upload.html has this:
form action=upload2.php method=POST
enctype=multipart/form-data

input type=file name=userfile
input type=submit name=submit value=submit
/form

and 

upload2.php has this:
?php

echo(in post);
 
echo($_POST['userfile]);

?


Where is the file??

Thanks


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




Re: [PHP] upload file

2002-08-25 Thread Daniel Guerrier

Thanks

the quote wasn't the issue.
Actually I shold have use $_FILE not $_POST .

--- Chris Shiflett [EMAIL PROTECTED] wrote:
 Daniel Guerrier wrote:
 
 echo($_POST['userfile]);
 
 
 Do you mean $_POST[userfile] here? It looks like
 you're missing a quote.
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




[PHP] PHP form port

2002-08-10 Thread Daniel Guerrier

How do i execute a form post with php?
I want to validate CCard info etc.. then perform the
post with no furtheraction from the user.

Basically If not valid stay here and show whats wrong
ELSE post form to process.php

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




[PHP] Credit Card Processing

2002-07-15 Thread Daniel Guerrier

Can anyone recommend a good and cheap shopping cart
and credit card processing combo.

Based on PHP of course.

Thanks

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




[PHP] Credit Card Processing - Take Two

2002-07-15 Thread Daniel Guerrier


Can anyone recommend a good and cheap shopping cart
and credit card processing combo.

Based on PHP of course.

Thanks


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
---BeginMessage---

Can anyone recommend a good and cheap shopping cart
and credit card processing combo.

Based on PHP of course.

Thanks

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


---End Message---

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


[PHP] PHP Portal Server

2002-05-02 Thread Daniel Guerrier

Does anyone know of and used a PHP powed portal
server?
Which is the most robust and the easiest to maintain?

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

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




[PHP] oscommerce / Exchange project

2001-12-21 Thread Daniel Guerrier

Does anyone have any experience using this thing.
I installed it and it seems to work, but it's very
buggy.

After the first hit the left nav, footer no longer
appear.  I know this a bad description of the problem
but there's no rhyme nor reason to this.

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.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 SSL credit card transaction

2001-12-06 Thread Daniel Guerrier

Can some give me a brief synopsis or direct me to some
information on how to create an ecommerce site using
php.  My main question is in the area of performing a
secure credit card transaction.  Do I need to use a
third party shopping or can I create my own, if I
create my own how do I integrate it with a credit
authorizer?  In addition how do I implement SSL with
PHP when performing the transaction?  Thanks in advance!!

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.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] which merchant account

2001-12-03 Thread Daniel Guerrier

Can anyone suggest a bank and/or merchant account
provider that you've used successfully in the past.

__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.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 credit validation

2001-12-01 Thread Daniel Guerrier

What credit service(s) can intergrate with PHP

__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.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] FEDEx API's

2001-07-06 Thread Daniel Guerrier

http://www.fedex.com/us/ebusiness/ecommerce/shipapi.html
--- Brad Hubbard [EMAIL PROTECTED] wrote:
 On Fri,  6 Jul 2001 02:10, Daniel Guerrier wrote:
  The FED Es api suite says tat windows is a
  requirement.
 
 
 URL?
 
 Cheers,
 Brad
 -- 
 Brad Hubbard
 Congo Systems
 12 Northgate Drive,
 Thomastown, Victoria, Australia 3074
 Email: [EMAIL PROTECTED]
 Ph: +61-3-94645981
 Fax: +61-3-94645982
 Mob: +61-419107559
 
 -- 
 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]
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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] FEDEx API's

2001-07-05 Thread Daniel Guerrier

The FED Es api suite says tat windows is a
requirement.

Has anyone intergrated this into a sight using PHP on linux.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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] reset mysql root password

2001-07-03 Thread Daniel Guerrier

How do I reset the root mysql password if I don't know
what it is in the first place.  I don't care if I lose data.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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 mysql install

2001-07-02 Thread Daniel Guerrier

I'm trying to make php work with mysql but I can't
even create a table.  I'm receiving this error.

[root@menace mysql]# mysqladmin create testdb
mysqladmin: connect to server at 'localhost' failed 
error: 'Can't connect to local MySQL server though
socket '/var/lib/mysql/mysq.sock' (2)'

Check that mysqld is running and that the socket
:'/var/lib/mysql/mysq.sock' exists

Shouldn't this file be created by the install
And when I use prefix=/software/mysql a mysqld file is
placed under /usr/local/bin as well.  Am I doing
something wrong??? 

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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] second try - Mysql php install

2001-07-02 Thread Daniel Guerrier


I'm trying to make php work with mysql but I can't
even create a table.  I'm receiving this error.

[root@menace mysql]# mysqladmin create testdb
mysqladmin: connect to server at 'localhost' failed 
error: 'Can't connect to local MySQL server though
socket '/var/lib/mysql/mysq.sock' (2)'

Check that mysqld is running and that the socket
:'/var/lib/mysql/mysq.sock' exists

I started mysqld - ps -ef shows that the process is
not running
The only thing I see that is wrong is that mysql.sock
is missing, but I assumed the install or starting the
process would create it.  It didn't.

Shouldn't this file be created by the install
And when I use prefix=/software/mysql a mysqld file is
placed under /usr/local/bin as well.  Am I doing
something wrong??? 

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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 4.06 as an apache DSO Error

2001-06-23 Thread Daniel Guerrier

I'm trying to install PHP 4.06 as a DSO with apache
1.3.20 on redhat 7.1 and it produces this error.  No
of which are the problem.  What else can it be??

Configuring SAPI modules

checking for Apache module support via DSO through
APXS...
./configure: /software/apache/bin: is a directory
Sorry, I was not able to successfully run APXS. 
Possible reasons:

1. Perl is not installed;
2. Apache was not compiled with DSO support
(--enable-module=so);
3.  'apxs' is not in your path.


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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] Templates??

2001-06-18 Thread Daniel Guerrier

What the true advantage of using templates and where
can I get info on using them?

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



[PHP] MSSQL7

2001-05-23 Thread Daniel Guerrier

Is it possible to import one MSSQL7 DB to another if
they were installed using different sort orders?

If yes, how?

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.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] Template programming

2001-05-02 Thread Daniel Guerrier

Where can I find detailed info on creating websites
using php templates.  
Hardcopy or online

Thanks in advance

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.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]