Re: [PHP] AOL and PHP

2003-06-14 Thread Leif K-Brooks
Most likely, you're using some HTML that AOL doesn't like.  It's 
definitley a client-side issue, in any case.

rml wrote:

I have recently created a site that has some PHP in it.  It works fine in
all browsers except AOL.  I can see some of the PHP page in AOL except the
one that fetches information from MySQL database.  I also host my own server
for this site.  Maybe this is a server setting or securtity issue.  Anyone
see this before?
Thanks.



 

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


Re: [PHP] which is quicker? XML or database?

2003-06-14 Thread John Hicks
Hi Justin--

I've been wrestling with a similar problem.

You say:
 I'm considering:

 a) storing this data in a MySQL table (a fairly simple
 query) b) storing this data in a pseudo XML format like:

 id24/id
 authorJustin French/author
 author_email[EMAIL PROTECTED]/author_email
 date_published2003-11-28/date_published
 introThis is my intro/intro
 bodyThis is my text and html -- say 1000 words?/body

Um, the above isn't pseudo XML. It's actually perfectly 
fine XML. Nothing pseudo about it.

 I'd love to
 hear any opinions about which would form of data
 retrieval would cause less of a performance burden on the
 server. . .

I've been wrestling with the same (or very similar) 
question: I'm trying to devise a flexible templating system 
where I can give my users control over content and inline 
formatting (allowing them to use, for example, p, em, 
span, ul) but retain control over page layout myself.

It does seem to me that XML should play a role here, but I 
haven't been able to find the right XML tools.

Ideally, the content would be stored in an XML document as 
you described. Your PHP page would use XPATH to address 
elements (or nodes) of the XML to set the value of PHP 
variables which would then be plugged into the HTML page.

XPATH allows you to do that much.

But every implementation of XPATH I've seen returns only 
the CDATA of an XML node, i.e. it strips out all the tags 
contained in the node. Thus you can't imbed formatting tags 
in the content.

(I've been tempted to go ahead and do a quick and dirty 
system using a relational DB, but such a system would break 
down from complexity over time. You would need a new table 
for each set of page components [or else devise a very 
messy and unnormal system with one grand table of columns 
with multiple uses].)

Am I missing something? Is there an implementation of xpath 
that does return the full contents of a node and not just 
the CDATA?

I guess you could use regular top-level PHP to parse an XML 
document chracter by character, storing in an array 
pointers to the beginning and ending characters of each 
element (i.e. the first character following the start tag 
and the last character before the end tag). Then you could 
look up in the array each desired element and use substr() 
to read its value and set a PHP variable to it. 

Ideally, you would want a system that included a facility 
to edit the XML document as well as read it. This would be 
used in the user's interface for editing his content. I 
would think an easy first step would be to recreate (or 
reassemble) the XML document after each edit session.

--John


On Friday 13 June 2003 11:30 pm, Justin French wrote:
 Hi all,

 I'm looking at a site where there will be a lot of
 articles, all of which will be added once, and rarely
 edited again...

 Let's say each article consisted of 6 data types:
 - id
 - author
 - authorEmail
 - datePublished
 - introduction
 - bodyText

 I'm considering:

 a) storing this data in a MySQL table (a fairly simple
 query) b) storing this data in a pseudo XML format like:

 id24/id
 authorJustin French/author
 author_email[EMAIL PROTECTED]/author_email
 date_published2003-11-28/date_published
 introThis is my intro/intro
 bodyThis is my text and html -- say 1000 words?/body


 I plan on doing my own performance tests, but I'd love to
 hear any opinions about which would form of data
 retrieval would cause less of a performance burden on the
 server (MySQL is on the same box as the htdocs and
 apache).


 TIA,

 Justin

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



[PHP] Re: Zend Optimizer not active?

2003-06-14 Thread Steve Yates
Ah, how clear things are afterwards. :)  I found out my problem was 
that PHP was looking in the wrong folder for php.ini, and it apparently 
fails silently, taking the default settings instead.

 - Steve Yates
 - A chicken is just an egg's way of continuing the species.

~ Taglines by Taglinator - www.srtware.com ~

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



RE: [PHP] Will this work right?

2003-06-14 Thread PHP4 Emailer

./PARTIAL SNIP/.

converting number of minutes into
/hours
# of mins in an hour = 60
/days
# of minutes in a day = 1440
/weeks
# of minutes in a week = 10080
/monthes
# of minutes in a month Feb non leap= 282240
Apr, June, Sept, Nov,   = 
302400
Jan, Mar, May, July, August, Oct, Dec   = 312480
/years
# of minutes in a year = 525600 and add 1440 to this for leap year.

/End Partial SNIP/...

Now the equation
If you have 10999 mins, lets call them apples and you do the equation as
follows:

10999 - 10080 = 919 mins, there's one week
919 / 60 = 15 (.31...etc)
(15 * 60 = 900 makes 19 minutes left over)
SO the # of slices from your apples = 1 Week / 15 Hours / 19 Minutes.


Wow, your right that was hard, not sure what I would have done with out my
calculator, but again if your having trouble and finding this too dificult
to understand, By all means let me know and I'll help ya.  BTW, I'm a newbie
at php, but the math, I think I learned that in 4th or 5th grade, I forget
(**Where's my diary?**).

'?php print LOL; ?'  :)

Besides, if you can write the equation in if statements you can do the
math to check your work. There's your 2nd human opinion. Good luck.

.:TIME:.
9.67 minutes! Boy the human brain can't be beat, Life is great.  Sorry that
was the smart ass in me comin out. :) ENJOY the apples!

-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 12:40 AM
To: PHP4 Emailer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Will this work right?


Unfortunatley, an equation to do what this script does would be as hard
to come up with, and as likely not to work.  That's why I want a second
(human) opinion.

PHP4 Emailer wrote:

I'm gonna go out on a limb here, but isn't that why the human brain made
calculators?  ;)

Good luck with the buttons, if you need help let me know. :)


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



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



[PHP] Multiable queries at one time?

2003-06-14 Thread Ben Houlton
Is it posable to execute multiable queries at one time, so that I can switch
tables and switch back with ease?
I've been trying for a while to figure out a way of doing this, but with no
luck.
Any help would be appreciated.
Thanks.
- Ben


[PHP] calling php files from within shtml files

2003-06-14 Thread Kwgoins1
I have a error page in shtml (must stay that way)
but I have a cool one page php script, that acts as a 
errorpage generator...and a automatic email of all errors
to admin...script...

in order to make it work correctly...
an .htaccess file must be in
the public_html root...
with the following lines:

ErrorDocument 000 /ErrorDocs/phpErrorDoc.php?000
ErrorDocument 400 /ErrorDocs/phpErrorDoc.php?400
ErrorDocument 401 /ErrorDocs/phpErrorDoc.php?401
ErrorDocument 403 /ErrorDocs/phpErrorDoc.php?403
ErrorDocument 404 /ErrorDocs/phpErrorDoc.php?404
ErrorDocument 500 /ErrorDocs/phpErrorDoc.php?500

however, my servers customised error pages are activated
thru a CPanel , and it saves them in shtml format...

I wish to implement the great one page php script
from with in the shtml pages...so that the script will email me
on all errors, (as the script is supposed to do)

HOW do I accomplish this?

I tried to add the following line to the shtml page:
?php include 'ErrorDocs/phpErrorDoc.php?404' ?

but it won't work...it doesn't email me...can someone help me with this?


[PHP] Re: Will this work right?

2003-06-14 Thread Ben Houlton
Total newb question... lol, but how do I get this to work with a form...
lol, very embarasing to ask this...
Leif K-Brooks [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 The following function converts minutes to years, monthes, weeks, days,
 hours, minutes.  For instance, 61 minutes would become 1 hour, one
 minute.  Before I use it, I want to make sure there are no stupid
 mistakes.  I can't find any, can any of you?
 function min2ymwdhm($min){
 $a = array();
 $years = intval(intval($min) / 525600);
 if($years  0) $array[] = $years . ' year' . ($years == 1 ? '' : 's');
 $monthes = intval(intval($min) / 43200) % 12;
 if($monthes  0) $array[] = $monthes . ' month' . ($monthes == 1 ?
 '' : 'es');
 $weeks = intval(intval($min) / 10080) % 4;
 if($weeks  0) $array[] = $weeks . ' week' . ($weeks == 1 ? '' : 's');
 $days = intval(intval($min) / 1440) % 7;
 if($days  0) $array[] = $days . ' day' . ($days == 1 ? '' : 's');
 $hours = intval(intval($min) / 60) % 24;
 if($hours  0) $array[] = $hours . ' hour' . ($hours == 1 ? '' : 's');
 $minutes = intval($min) % 60;
 if($minutes  0) $array[] = $minutes . ' minute' . ($minutes == 1 ?
 '' : 's');
 return implode($array,', ');
 }

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



[PHP] php editor?

2003-06-14 Thread M-Ali Mahmoodi
hi all
i'm a beginner in php
can anyone help me about useful and powerful editors in php?




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



RE: [PHP] extracting text from text file to be used in PHP

2003-06-14 Thread Boaz Yahav
You can also use regular expressions.
Here is an example :

How to extract a string from a bigger string or from an HTML block with
regex and PHP
http://examples.weberdev.com/get_example.php3?count=3167

Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.


-Original Message-
From: Lance Q [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 14, 2003 1:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] extracting text from text file to be used in PHP


Hello all,

One of the sites I host is a radio station. Their computer has been
setup to automagically upload the current song and the next song to
their web site via FTP. Unfortunately, the format it comes in is pretty
awful. (See below). tag The CURRENT CutID is: 70428 The Type is: MUS
The ArtistName is: Nena The SongTitle is: 99 Luft Balloons (German) The
Duration is: 00:03:48 /tag

What I would like to know how to do is extract the relevant info
(everything after the : for instance) and manipulate it, possibly as a
variable so that $ArtistName=Nena for instance.

I've looked through the php.net manual for fgets and such, but no luck.

Thanks in advance,
Lance



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



RE: [PHP] php editor?

2003-06-14 Thread electroteque
i use homesite usually but have been helping the php edit guys 

www.phpedit.net

-Original Message-
From: M-Ali Mahmoodi [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 4:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php editor?


hi all
i'm a beginner in php
can anyone help me about useful and powerful editors in php?




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



[PHP] Re: Multiable queries at one time?

2003-06-14 Thread Ben Houlton
And example script i'm trying to use is below:

$result2 = mysql_query($sql2);

$row2 = mysql_fetch_array($result2);

$sql = SELECT * FROM main WHERE id=$id;

$result = mysql_query($sql);

$row = mysql_fetch_array($result);


Ben Houlton [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Is it posable to execute multiable queries at one time, so that I can
switch
 tables and switch back with ease?
 I've been trying for a while to figure out a way of doing this, but with
no
 luck.
 Any help would be appreciated.
 Thanks.
 - Ben




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



[PHP] Mail() and html

2003-06-14 Thread gregory landry
Good Morning,
 
Hopefully I'm not asking questions that are too basic. I am new to this list
and new to PHP. If my questions are too basic please let me know and I'll
direct them elsewhere.
 
 
I'm at a very basic level with PHP. I'm working with form data and sending
the information out in emails. That is not a problem. What I would like to
do is send out an email with the information from the form in html format.
I've seen many examples and the one below works fine for me. But I would
like to be able to add a body tag to $mailbody below so I can color the
background of the html page that is being sent out via email. Can someone
explain to me what I have to add to the following to make this happen?
 
Thanks,
Greg
 
This works but I can't change the background color of the html email:
 
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body
?php 
print Hello there; 
$to = [EMAIL PROTECTED]; // Where the e-mail is sending to. 
$subject = This Is A Test!; // The subject of the e-mail. 
$name = Greg Landry; // Your name, the from name. 
$email = [EMAIL PROTECTED]; // Your e-mail, the from address. 
$mailbody = hrTesthrBrBrimg src=\
http://www.portcityportlandmaine.com/php/clients.jpg\ 

$name'http://www.portcityportlandmaine.com/php/clients.jpg\;Brbr$name
;
mail($to, $subject, $mailbody, From: $name $email\n .
MIME-Version: 1.0\n . Content-type: text/html; charset=iso-8859-1); 
? 
 
/body
/html
 
 


RE: [PHP] Mail() and html

2003-06-14 Thread gregory landry
Got it! Thanks...

-Original Message-
From: gregory landry [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 14, 2003 6:23 AM
To: PHP Mail List
Subject: [PHP] Mail() and html


Good Morning,
 
Hopefully I'm not asking questions that are too basic. I am new to this list
and new to PHP. If my questions are too basic please let me know and I'll
direct them elsewhere.
 
 
I'm at a very basic level with PHP. I'm working with form data and sending
the information out in emails. That is not a problem. What I would like to
do is send out an email with the information from the form in html format.
I've seen many examples and the one below works fine for me. But I would
like to be able to add a body tag to $mailbody below so I can color the
background of the html page that is being sent out via email. Can someone
explain to me what I have to add to the following to make this happen?
 
Thanks,
Greg
 
This works but I can't change the background color of the html email:
 
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html
head titleUntitled Document/title meta http-equiv=Content-Type
content=text/html; charset=iso-8859-1 /head body ?php 
print Hello there; 
$to = [EMAIL PROTECTED]; // Where the e-mail is sending to. 
$subject = This Is A Test!; // The subject of the e-mail. 
$name = Greg Landry; // Your name, the from name. 
$email = [EMAIL PROTECTED]; // Your e-mail, the from address. 
$mailbody = hrTesthrBrBrimg src=\
http://www.portcityportlandmaine.com/php/clients.jpg\ 

$name'http://www.portcityportlandmaine.com/php/clients.jpg\;Brbr$name
;
mail($to, $subject, $mailbody, From: $name $email\n .
MIME-Version: 1.0\n . Content-type: text/html; charset=iso-8859-1); 
? 
 
/body
/html
 
 



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



[PHP] Re: php editor?

2003-06-14 Thread Aliaksei Kurets
The best PHP editor I know is Zend Studio. This is a real good editor with
debugging, highlighting and very good code complete.


M-Ali Mahmoodi [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:[EMAIL PROTECTED]
 hi all
 i'm a beginner in php
 can anyone help me about useful and powerful editors in php?






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



[PHP] Problem in windows

2003-06-14 Thread James Stanley
Hello,

I just installed php/mysql on my windows machine, now when I try to run 
a script I get this:

Use of undefined constant s_UID - assumed 's_UID' in
c:\inetpub\wwwroot\php_test\inc\session.php
And then some Undefined variable: s_UserInfo.

Any thought why could this be? Thanks.

James.

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


Re: [PHP] header() and mozilla - HELP!

2003-06-14 Thread Neil Freeman
Ensure that you have a die; after the Header() line.

Neil

deno vichas wrote:
*** 

This Message Was Virus Checked With : SAVI 3.70 June 2003
Last Updated/Checked 12th June 2003 
*** 

i'm runnig into a random problem of having all the headers being 
displayed instead on the actual web page in mozilla, Ie doesn't seem to 
suffer from this, when using header(location: www.url.com);  this is 
happening randomly.  has anybody seen this or have a fix?

-deno

i'm running:

php 4.3.2
apache 1.3.27
redhat 8.0
php is configed with:
'./configure' '--prefix=/usr/local' 
'--with-apache=/home/deno/Apachetoolbox-1.5.66/apache_1.3.27' 
'--enable-exif' '--enable-track-vars' '--with-calendar=shared' 
'--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx' 
'--enable-ftp' '--enable-inline-optimization' '--enable-memory-limit' 
'--with-mcrypt=/usr/local' '--with-pdflib=/usr/local' 
'--with-tiff-dir=/usr' '--with-jpeg-dir=/usr' '--with-zlib-dir=/usr' 
'--with-openssl=/usr/local/ssl' '--with-curl=/usr' '--with-dom=/usr' 
'--with-zlib-dir=/usr' '--with-pgsql' '--with-ldap'


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


[PHP] Minimalistic BBcode script

2003-06-14 Thread DZ
Hello,

I found one minimalistic BBcode script, but it doesnt work.

Warning: Unknown modifier '1' in f:\_php\_f\bb-code\test.php on line 32

line 32 is such:

$t = preg_replace_callback( '/[('.$atag.')(=(.*))?](.*)[/1]/isU', 'nc', $s);

How to get work it?



Source is only 40 lines:

?php

$tagid = array(
'b' = 'b%s/b',
'u' = 'u%s/u',
'i' = 'i%s/i',
'tsitaat' = 'blockquotesmallbTsitaat/b:hr%shr/small/blockquote',
'url' = 'a href=%s%s/a',
'mail' = 'a href=mailto:%s;%s/a',
'img' = 'img src=%s alt=%s',
'code' = 'font color=green%s/font',
'kood' = 'font color=green%s/font',
'color' = 'font color=%s%s/font',
'size' = 'font size=%s%s/font'
);
$atag = join( '|', array_keys( $tagid));

/*
print 'pallowed tags:/p';
foreach( $tagid as $key = $value) {
echo b$key/bbrn;
}
*/

function nc( $s){
if ( $s[1] ) $s[4] = nk( $s[4]);
global $tagid;
return $s[1]?sprintf($tagid[$s[1]],(!empty($s[3])?$s[3]:$s[4]),$s[4]):$s[0];
}
function nk( $s){
global $atag;
$t = preg_replace_callback( '/[('.$atag.')(=(.*))?](.*)[/1]/isU', 'nc', $s);
return $t;
}

$text = [b]bold text [i]mixed with[/b] italic[/i];
echo nl2br( nk( htmlspecialchars( $text, ENT_NOQUOTES)));

?

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



Re: [PHP] Problem in windows

2003-06-14 Thread Brian V Bonini
I love that subject line... All I could think was, of course... Sorry,
couldn't resist that.. ;-)


On Sat, 2003-06-14 at 08:02, James Stanley wrote:
 Hello,
 
 I just installed php/mysql on my windows machine, now when I try to run 
 a script I get this:
 
 Use of undefined constant s_UID - assumed 's_UID' in
 c:\inetpub\wwwroot\php_test\inc\session.php
 
 And then some Undefined variable: s_UserInfo.
 
 Any thought why could this be? Thanks.
 
 James.


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



[PHP] How do I replace browser history using Header()?

2003-06-14 Thread Neil Freeman
Hi,

I am using Header(Location:http://www.mysite.com/mypage.php;); to do a 
browser redirect. This works fine. The problem though is that doing this 
adds a page to the browser's window.self.history() collection.

Is there any way that I can do a PHP Header() statement that does the 
equivalent of JavaScript's 
window.self.location.replace(http://www.mysite.com/mypage.php;)?

In other words I would like to use PHP's Header statement to replace the 
current page in the brower's history, not just add another location onto 
the collection.

Any help much appreciated.

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


RE: [PHP] How do I replace browser history using Header()?

2003-06-14 Thread Mark Charette


 -Original Message-
 From: Neil Freeman [mailto:[EMAIL PROTECTED]
 Is there any way that I can do a PHP Header() statement that does the 
 equivalent of JavaScript's 
 window.self.location.replace(http://www.mysite.com/mypage.php;)?

No. JavaScript (if turned on) is your only choice.


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



[PHP] Very Wierd Problem

2003-06-14 Thread James E Hicks III
I am experiencing some weird problems with PHP. When I execute the following
query from within a PHP script, the description is set to 'EBCO' and not
'EBCO\030774-006\BUBBLER VALVE'. When I execute this query from the mysql
monitor the value is inserted correctly.

$query = update the_table
 set description = 'EBCO\\030774-006\\BUBBLER VALVE'
   where item_number = '1';
mysql_query($query);


This statement prints to console incorrectly (notice funky character after
EBCO):

echo (EBCO\030774-006\BUBBLER VALVE);
EBCO774-006\BUBBLER VALVE

This statement prints to console incorrectly (notice funky character after
EBCO):

echo addslashes(EBCO\030774-006\BUBBLER VALVE);
EBCO774-006\\BUBBLER VALVE


This statement prints the variable to the console correctly:

echo (EBCO\\030774-006\\BUBBLER VALVE);
EBCO\030774-006\BUBBLER VALVE


How can I handle this description correctly with PHP?


James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ext 435
[EMAIL PROTECTED]


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



[PHP] sessions security (no problems just question)

2003-06-14 Thread Ryan A
Hi,
I have been reading up on the old discussions on this list as i was very
busy for the past few daysand i saw a very intresting topic regarding
sessions and security.

I really didnt understand some of the things you guys wrote on hi-jacking a
session...do you have any examples of this?
How can someone else have the session info of another user?
after looking at the session id i see that its a long garbled string and
even if someone is a good guesser...isnt that a very very very long shot? or
am i missing something?

I looked up on google and i didnt see anything major...

I dont mean to drag this topic up all over again so if any of you have any
URLs that you think would shed some light on this matterplease do post
it to me.

This concerns me a lot as I have a very sessions heavy site...which is
also a kind of paysite/freesite.

Cheers,
-Ryan


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



[PHP] Re: Warning Spammer

2003-06-14 Thread Ryan A
Hey,

 truth is unless it has a header with something about Bounce-to: spammer or
 the From address is actually correct, it never gets to the spammer.  what
 spamers use now are spy images or javascripts, html content with an image
 that includes an id with it so that when the person views the email..

True, and thats why mailwasher does not display images or javascript.
But the spammers sometimes do use the bounced back messages to clean their
lists as they are plenty of those programs availabe pretty cheap to do
so...there are even mailservers out there that after it sends the mail if
the mail bounces it automatically deletes it from its database.
All i am saying is, mailwasher works, it has reduced my spam by a lot and i
used to get a crapload as i work with around 15 sites including a portal,
you can tell me my spam has decreased becasue the spammers repented or
because the good lord thought i had had enough...but i think it has gone
down considerably because of MW.

Instead of knocking it so much, why dont you test drive it for a month (its
free) and then write and tell me?
heres the link:
http://entier.ecosm.com/system/redir.php?ad=15aid=2310

cheers,
-Ryan




 here is one bounce, but i know this isn't from mailwasher. i can't seem to
 find one that i've gotten from mailwasher at the moment.

 your right, i probably won't notice that you bounced 1 or 2, but that you
and
 everyone who uses mailwasher and everyone of the list who tries it and
then
 tells their friends that bouncing the messages gets them off lists.

 truth is unless it has a header with something about Bounce-to: spammer or
 the From address is actually correct, it never gets to the spammer.  what
 spamers use now are spy images or javascripts, html content with an image
 that includes an id with it so that when the person views the email, the
 email program goes out and gets an image by the name of
 http://images.whatever.com/getahotchick.jpg?uea8769bbrc86
 they then use that for cleaning out their mailing lists.  if everyone
stopped
 viewing spam in html, they would stop getting a chunk of spam.  if
everyone
 bounces messages, then it just adds pointless bandwidth and email to
people
 not involved.

 --  Forwarded Message  --

 Subject: failure notice
 Date: 11 May 2003 15:57:18 -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]

 Hi. This is the qmail-send program at courtney.linkline.com.
 I'm afraid I wasn't able to deliver your message to the following
addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.

 [EMAIL PROTECTED]:
 Sorry, no mailbox here by that name. (#5.1.1)

 --- Below this line is a copy of the message.

 Return-Path: [EMAIL PROTECTED]
 Received: (qmail 49019 invoked from network); 11 May 2003 15:57:18 -
 Received: from unknown (HELO mailwall6.linkline.com) (64.30.215.55)
   by 33.215.30.10.in-addr.arpa with SMTP; 11 May 2003 15:57:18 -
 Received: from mailwall1.linkline.com (mailwall1.linkline.com
[64.30.215.59])
 by mailwall6.linkline.com (8.12.9/8.12.6) with ESMTP id h4BFvG1D041670
 for [EMAIL PROTECTED]; Sun, 11 May 2003 15:57:16 GMT
 Received: from fclaw.com ([210.77.102.86])
 by mailwall1.linkline.com (8.12.9/8.12.8) with SMTP id h4BFvDla018094
 for [EMAIL PROTECTED]; Sun, 11 May 2003 08:57:15 -0700 (PDT)
 Message-ID: [EMAIL PROTECTED]
 From: Kristy Ray [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Technological advances
 Date: Sun, 11 May 2003 15:58:56 +
 MIME-Version: 1.0
 Content-Type: text/html;
 charset=iso-8859-1
 Content-Transfer-Encoding: base64
 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
 X-Spam-Status: Spam: False ; 1.7 / 5.0

 CQ0KPGh0bWw+CQ0KPGJvZHkgQkdDT0xPUj0jZmZmZmZmPgkNCjxwIGFsaWdu
 PSJjZW50ZXIiPjxDPjxmb250IGZhY2U9InZlcmRhbmEiPg0KZ2V0IGxhcmc8
 Q1ZNPmVyIG51dHMgYW5kIDxRWFFVPnBlbjxDSUE+7TxZWUxDPnM8Q05TQj4s
 ICA8WEdRQz5tb3JlDQogcDxLTVJFPmw8WE5BPmU8S1E+YTxXQVc+czxLPnVy
 PFlOPmUsIAkJDQogbW88UT5yZQ0KIHNhPFdBPnRpPFg+c2ZhYzxRR04+dGk8
 WEJMRj5vbjxicj4NCjxhIGhyZWY9Imh0dHA6Ly9idVlOMFcuQ09NLyU2MyU2
 NyU2OS0lNjIlNjklNkUvdnByeC5jJTY3JTY5PyU2ZiU3OCU3OWclNjUlNkUi
 PkxlYXJuIGFib3V0IGl0IDxYPmhlcmU8L2E+PGJyPg0KPGJyPiANCiANCgkJ
 DQo8QSBIUkVGPSJodHRwOi8vYlVZTjB3LmNvTS9jZyU2OSUyZGIlNjluLyU3
 NiU3MCU3MiU3OC4lNjNnaT8lNkZ4eSU2NyU2NSU2ZSI+DQoJDQogPElNRyBC
 T1JERVI9MCBTUkM9Imh0dHA6Ly8yMDcuMTU2LjIxNi41Ny9wLmpwJTY3Ij4J
 DQogPC9hPjxicj48YnI+PGJyPg0KPGEgaHJlZj0iaHR0cDovL2J1eW4wdy5j
 T00vbyU3NXRvZiU2OGUlNzJlLmh0JTZkJTZDIj5ObyA8Wk4+bTxaSlM+bzxY
 PnI8Qz5lIHBsZWFzZTwvYT4NCjxicj4tPWRmYjNtZzN5NjIzNT0tPC9mb250
 PjwvcD4JCTwvYm9keT4gDQogIDwvSFRNTD4NCiAgIA0KCQ0KDQoNCg==

 ---



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



[PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
I have a line of code in my form that I am trying to get to work.  

$action = ($HTTP_POST_VARS['action'] == data_input) ? check : display;

I recieved undefined action when running.  So I did this.

$command = isset($HTTP_VARS['action'] == data_input) ? check : display;

I recieve unexpected T_IS_EQUAL, expecting ',' or ')'

Ive tried a couple different ways to isolate my syntax.  I am using the example from
 http://www.zend.com/zend/spotlight/form-pro-php4.php

Ive also read this document and I understand it.  
http://ca2.php.net/manual/en/language.expressions.php

I know that is my syntax,  I followed the example that Lars Torben Wilson [EMAIL 
PROTECTED] gave me, and it worked great checking the isset before declaring in my 
form.  Im hoping that this is just as simple.  

-Dan

[PHP] PHP installation on RedHat

2003-06-14 Thread Info Best-IT
Anyone know where I can get a better step by step how to for installation of PHP with 
DOM, 
XSLT, and XPATh support on Red Hat?  PHP.NET is not so hot...

/T

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



Re: [PHP] Very Wierd Problem

2003-06-14 Thread John W. Holmes
James E Hicks III wrote:
I am experiencing some weird problems with PHP. When I execute the following
query from within a PHP script, the description is set to 'EBCO' and not
'EBCO\030774-006\BUBBLER VALVE'. When I execute this query from the mysql
monitor the value is inserted correctly.
$query = update the_table
 set description = 'EBCO\\030774-006\\BUBBLER VALVE'
   where item_number = '1';
mysql_query($query);
This statement prints to console incorrectly (notice funky character after
EBCO):
echo (EBCO\030774-006\BUBBLER VALVE);
EBCO774-006\BUBBLER VALVE
\0 is a NULL character, IIRC. Either use single quotes:

echo ('EBCO\030774-006\BUBBLER VALVE');

or use two slashes, like you did above:

echo (EBCO\\030774-006\\BUBBLER VALVE);

---John Holmes...



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


Re: [PHP] $command actions

2003-06-14 Thread Leif K-Brooks
$command = isset($HTTP_POST_VARS['action'] and $HTTP_POST_VARS['action'] == data_input) ? check : display;



Daniel J. Rychlik wrote:

I have a line of code in my form that I am trying to get to work.  

$action = ($HTTP_POST_VARS['action'] == data_input) ? check : display;

I recieved undefined action when running.  So I did this.

$command = isset($HTTP_VARS['action'] == data_input) ? check : display;

I recieve unexpected T_IS_EQUAL, expecting ',' or ')'

Ive tried a couple different ways to isolate my syntax.  I am using the example from
http://www.zend.com/zend/spotlight/form-pro-php4.php
Ive also read this document and I understand it.  
http://ca2.php.net/manual/en/language.expressions.php

I know that is my syntax,  I followed the example that Lars Torben Wilson [EMAIL PROTECTED] gave me, and it worked great checking the isset before declaring in my form.  Im hoping that this is just as simple.  

-Dan
 

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


RE: [PHP] Very Wierd Problem

2003-06-14 Thread James E Hicks III
 \0 is a NULL character, IIRC. Either use single quotes:
 echo ('EBCO\030774-006\BUBBLER VALVE');
 or use two slashes, like you did above:
 echo (EBCO\\030774-006\\BUBBLER VALVE);
 ---John Holmes...

Problem is that this description is coming from a DB, that's 
why I was trying to use addslashes, which caused me the same
problems. 

James



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



Re: [PHP] Problem in windows

2003-06-14 Thread David Otton
On Sat, 14 Jun 2003 08:02:57 -0400, you wrote:

I just installed php/mysql on my windows machine, now when I try to run 
a script I get this:

Use of undefined constant s_UID - assumed 's_UID' in
c:\inetpub\wwwroot\php_test\inc\session.php

And then some Undefined variable: s_UserInfo.

Any thought why could this be? Thanks.

Any script or just one script? Try a simple

? phpinfo(); ?

That will probably work... it sounds like the problem is your script rather
than your platform.

If it's a stock script you're trying to run, my first guess would be that
you're missing a define() - probably because you're not include()ing or
require()ing a file correctly.

Second guess is that it really should be 's_UID' or $s_UID not s_UID.


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



Re: [PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
I recieved a unexpected T_LOGICAL_AND, expecting ',' or ')';



- Original Message - 
From: Leif K-Brooks [EMAIL PROTECTED]
To: Daniel J. Rychlik [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 10:22 AM
Subject: Re: [PHP] $command actions


 $command = isset($HTTP_POST_VARS['action'] and $HTTP_POST_VARS['action']
== data_input) ? check : display;




 Daniel J. Rychlik wrote:

 I have a line of code in my form that I am trying to get to work.
 
 $action = ($HTTP_POST_VARS['action'] == data_input) ? check :
display;
 
 I recieved undefined action when running.  So I did this.
 
 $command = isset($HTTP_VARS['action'] == data_input) ? check :
display;
 
 I recieve unexpected T_IS_EQUAL, expecting ',' or ')'
 
 Ive tried a couple different ways to isolate my syntax.  I am using the
example from
  http://www.zend.com/zend/spotlight/form-pro-php4.php
 
 Ive also read this document and I understand it.
 http://ca2.php.net/manual/en/language.expressions.php
 
 I know that is my syntax,  I followed the example that Lars Torben Wilson
[EMAIL PROTECTED] gave me, and it worked great checking the isset before
declaring in my form.  Im hoping that this is just as simple.
 
 -Dan
 
 

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



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



Re: [PHP] $command actions

2003-06-14 Thread Leif K-Brooks
Whoops! 

$command = isset($HTTP_POST_VARS['action']) and $HTTP_POST_VARS['action'] == data_input) ? check : display;



Daniel J. Rychlik wrote:

I recieved a unexpected T_LOGICAL_AND, expecting ',' or ')';



- Original Message - 
From: Leif K-Brooks [EMAIL PROTECTED]
To: Daniel J. Rychlik [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 10:22 AM
Subject: Re: [PHP] $command actions

 

$command = isset($HTTP_POST_VARS['action'] and $HTTP_POST_VARS['action']
   

== data_input) ? check : display;
 



Daniel J. Rychlik wrote:

   

I have a line of code in my form that I am trying to get to work.

$action = ($HTTP_POST_VARS['action'] == data_input) ? check :
 

display;
 

I recieved undefined action when running.  So I did this.

$command = isset($HTTP_VARS['action'] == data_input) ? check :
 

display;
 

I recieve unexpected T_IS_EQUAL, expecting ',' or ')'

Ive tried a couple different ways to isolate my syntax.  I am using the
 

example from
 

http://www.zend.com/zend/spotlight/form-pro-php4.php

Ive also read this document and I understand it.
http://ca2.php.net/manual/en/language.expressions.php
I know that is my syntax,  I followed the example that Lars Torben Wilson
 

[EMAIL PROTECTED] gave me, and it worked great checking the isset before
declaring in my form.  Im hoping that this is just as simple.
 

-Dan

 

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



 

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


Re: [PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
It worked!  thanks so much.  I did however place another ( on the second
$HTTP_POST_ to make it function with out error.

Appreciate your time!
dan
- Original Message - 
From: Leif K-Brooks [EMAIL PROTECTED]
To: Daniel J. Rychlik [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 10:54 AM
Subject: Re: [PHP] $command actions


 Whoops!

 $command = isset($HTTP_POST_VARS['action']) and $HTTP_POST_VARS['action']
== data_input) ? check : display;



 Daniel J. Rychlik wrote:

 I recieved a unexpected T_LOGICAL_AND, expecting ',' or ')';
 
 
 
 - Original Message - 
 From: Leif K-Brooks [EMAIL PROTECTED]
 To: Daniel J. Rychlik [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Saturday, June 14, 2003 10:22 AM
 Subject: Re: [PHP] $command actions
 
 
 
 
 $command = isset($HTTP_POST_VARS['action'] and $HTTP_POST_VARS['action']
 
 
 == data_input) ? check : display;
 
 
 
 
 Daniel J. Rychlik wrote:
 
 
 
 I have a line of code in my form that I am trying to get to work.
 
 $action = ($HTTP_POST_VARS['action'] == data_input) ? check :
 
 
 display;
 
 
 I recieved undefined action when running.  So I did this.
 
 $command = isset($HTTP_VARS['action'] == data_input) ? check :
 
 
 display;
 
 
 I recieve unexpected T_IS_EQUAL, expecting ',' or ')'
 
 Ive tried a couple different ways to isolate my syntax.  I am using the
 
 
 example from
 
 
 http://www.zend.com/zend/spotlight/form-pro-php4.php
 
 Ive also read this document and I understand it.
 http://ca2.php.net/manual/en/language.expressions.php
 
 I know that is my syntax,  I followed the example that Lars Torben
Wilson
 
 
 [EMAIL PROTECTED] gave me, and it worked great checking the isset before
 declaring in my form.  Im hoping that this is just as simple.
 
 
 -Dan
 
 
 
 
 -- 
 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
 
 
 
 
 
 
 

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



Re: [PHP] PHP installation on RedHat

2003-06-14 Thread Yann Larrivee
Hi i made a tutorial on how to compile php, expath, libxml, sablotron 

It works well for me. I ran into many probleme so i made an faq page
where all errors are listed with an explanation, solution.
If anybody encounter other errors i will put them there too.

I compile on Suse 8.2 but i dont think it should make a difference.

Yann Larrivee
www.phpquebec.org
www.protonicdesign.com


On Sat, 2003-06-14 at 19:24, Info Best-IT wrote:
 Anyone know where I can get a better step by step how to for installation of PHP 
 with DOM, 
 XSLT, and XPATh support on Red Hat?  PHP.NET is not so hot...
 
 /T
 
 -- 
 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



[PHP] need help with using java in PHP

2003-06-14 Thread Kevin Ison
ok heres the scenerio:

php.ini:

[Java]
java.class.path = C:\apache\php\JAVA\php_java.jar;c:\apache\htdocs\ktest\;.
java.home = C:\j2sdk1.4.1_01\bin\
java.library = C:\j2sdk1.4.1_01\jre\bin\server\jvm.dll
java.library.path = C:\apache\php\extensions\;C:\apache\php\;.\

the PHP source code:
?
$myClass = new Java(java.io.file,c:\apache\logs\error.log);
if ($myClass-exists()) {
 echo File path is .$myClass-getAbsolutePath().br/;
} else {
 echo br/ blah no workie br/;
}
?

resulting output:
Warning: java.lang.ClassNotFoundException: java.io.file in
c:\apache\htdocs\ktest\xzerror.php on line 13
Fatal error: Call to a member function on a non-object in
c:\apache\htdocs\ktest\xzerror.php on line 23

I got the idea from something I saw a while back on a PHP tutorial my
question is, why doesnt this work.  I think I have the PHP.INI file set up
correctly.

thanks
--
Kevin Ison
Charlotte, NC



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



Re: [PHP] sessions security (no problems just question)

2003-06-14 Thread Jeff Harris
On Jun 14, 2003, Ryan A claimed that:

|Hi,
|I have been reading up on the old discussions on this list as i was very
|busy for the past few daysand i saw a very intresting topic regarding
|sessions and security.
|
|I really didnt understand some of the things you guys wrote on hi-jacking a
|session...do you have any examples of this?
|How can someone else have the session info of another user?
|after looking at the session id i see that its a long garbled string and
|even if someone is a good guesser...isnt that a very very very long shot? or
|am i missing something?
|
|I looked up on google and i didnt see anything major...
|
|I dont mean to drag this topic up all over again so if any of you have any
|URLs that you think would shed some light on this matterplease do post
|it to me.
|
|This concerns me a lot as I have a very sessions heavy site...which is
|also a kind of paysite/freesite.
|
|Cheers,
|-Ryan

From http://www.php.net/manual/en/print/ref.session.php

There are several ways to leak an existing session id to third parties. A
leaked session id enables the third party to access all resources which
are associated with a specific id. First, URLs carrying session ids. If
you link to an external site, the URL including the session id might be
stored in the external site's referrer logs. Second, a more active
attacker might listen to your network traffic. If it is not encrypted,
session ids will flow in plain text over the network. The solution here is
to implement SSL on your server and make it mandatory for users.

Another way is to monitor session.save_path of another domain on a server
that you have access to. Using some screen scraping techniques it might
not be hard to extract passwords or (using something similar to Amazon's
'one-click' purchasing) to buy a bunch of crap using someone else's money.

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



Re: [PHP] php editor?

2003-06-14 Thread Jeff Harris
On Jun 14, 2003, M-Ali Mahmoodi claimed that:

|hi all
|i'm a beginner in php
|can anyone help me about useful and powerful editors in php?

vi

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



Re: [PHP] which is quicker? XML or database?

2003-06-14 Thread Robert Cummings
John Hicks wrote:
 
 Hi Justin--
 
 I've been wrestling with a similar problem.
 
 You say:
  I'm considering:
 
  a) storing this data in a MySQL table (a fairly simple
  query) b) storing this data in a pseudo XML format like:
 
  id24/id
  authorJustin French/author
  author_email[EMAIL PROTECTED]/author_email
  date_published2003-11-28/date_published
  introThis is my intro/intro
  bodyThis is my text and html -- say 1000 words?/body
 
 Um, the above isn't pseudo XML. It's actually perfectly
 fine XML. Nothing pseudo about it.

Not to quibble (ok JUST to quibble :) It isn't correct XML because it
has no root tag *heheh*.

Cheers,
Rob.
-- 
.-.
| Worlds of Carnage - http://www.wocmud.org   |
:-:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the  |
| stuff of nightmares grasp for your soul.|
`-'

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



Re: [PHP] How do I replace browser history using Header()?

2003-06-14 Thread Neil Freeman
Hmmm. As I thought. Thanks anyway Mark.

Neil

Mark Charette wrote:
***
This Message Was Virus Checked With : SAVI 3.70 June 2003
Last Updated/Checked 12th June 2003 
***




-Original Message-
From: Neil Freeman [mailto:[EMAIL PROTECTED]
Is there any way that I can do a PHP Header() statement that does the 
equivalent of JavaScript's 
window.self.location.replace(http://www.mysite.com/mypage.php;)?


No. JavaScript (if turned on) is your only choice.

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


Re: [PHP] shopping cart and login system

2003-06-14 Thread olinux
hi

--- electroteque [EMAIL PROTECTED] wrote:
 hi there , i am about to build a shopping cart which
 will interact with a
 paypal payment system , the cart will use sessions
 to store the items and
 basket information before checking out and posting
 to the paypal form , what
 i'd like to know is would the cart require a login
 system to track users and
 to prevent ppl from making dodgy orders , 

if pure simplicity is a goal, i dont think you need a
login for customers. who cares if they add items and
then dont purchase. obviously they would not be able
to log in again to see the previous orders or current
order status but you could always implement later.


 if not can a session easily be hijacked at all ? 

easily? i dont think so
can it be done? sure


 better still is there anyone out
 there who has intergrated
 their users with the paypal login, so say they login
 to your shopping cart
 to start making payments they are alreayd logged
 into paypal aswell this
 would be ideal :D

I'm sure you already tried hotscripts.com - maybe
paypal has a developer section similar to amazon? but
i would guess that they dont want people routing their
passwords thru other websites.


__
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



[PHP] Securing Source Code

2003-06-14 Thread Suhas Pharkute
Hello,

I am developing a network application. But I need to distribute it to
different divisions.

I am looking for Ideas for Securing Source Code from User.

Please Help!

Suhas


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



php-general Digest 14 Jun 2003 17:49:27 -0000 Issue 2117

2003-06-14 Thread php-general-digest-help

php-general Digest 14 Jun 2003 17:49:27 - Issue 2117

Topics (messages 151460 through 151499):

Re: AOL and PHP
151460 by: Leif K-Brooks

Re: which is quicker?  XML or database?
151461 by: John Hicks
151496 by: Robert Cummings

Re: Zend Optimizer not active?
151462 by: Steve Yates

Re: Will this work right?
151463 by: PHP4 Emailer
151466 by: Ben Houlton

Multiable queries at one time?
151464 by: Ben Houlton
151470 by: Ben Houlton

calling php files from within shtml files
151465 by: Kwgoins1.aol.com

php editor?
151467 by: M-Ali Mahmoodi
151469 by: electroteque
151473 by: Aliaksei Kurets
151495 by: Jeff Harris

Re: extracting text from text file to be used in PHP
151468 by: Boaz Yahav

Mail() and html
151471 by: gregory landry
151472 by: gregory landry

Problem in windows
151474 by: James Stanley
151477 by: Brian V Bonini
151488 by: David Otton

Re: header() and mozilla - HELP!
151475 by: Neil Freeman

Minimalistic BBcode script
151476 by: DZ

How do I replace browser history using Header()?
151478 by: Neil Freeman
151479 by: Mark Charette
151497 by: Neil Freeman

Very Wierd Problem
151480 by: James E Hicks III
151485 by: John W. Holmes
151487 by: James E Hicks III

sessions security (no problems just question)
151481 by: Ryan A
151494 by: Jeff Harris

Re: Warning Spammer
151482 by: Ryan A

$command actions
151483 by: Daniel J. Rychlik
151486 by: Leif K-Brooks
151489 by: Daniel J. Rychlik
151490 by: Leif K-Brooks
151491 by: Daniel J. Rychlik

PHP installation on RedHat
151484 by: Info Best-IT
151492 by: Yann Larrivee

need help with using java in PHP
151493 by: Kevin Ison

Re: shopping cart and login system
151498 by: olinux

Securing Source Code
151499 by: Suhas Pharkute

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
Most likely, you're using some HTML that AOL doesn't like.  It's 
definitley a client-side issue, in any case.

rml wrote:

I have recently created a site that has some PHP in it.  It works fine in
all browsers except AOL.  I can see some of the PHP page in AOL except the
one that fetches information from MySQL database.  I also host my own server
for this site.  Maybe this is a server setting or securtity issue.  Anyone
see this before?
Thanks.



 

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

---End Message---
---BeginMessage---
Hi Justin--

I've been wrestling with a similar problem.

You say:
 I'm considering:

 a) storing this data in a MySQL table (a fairly simple
 query) b) storing this data in a pseudo XML format like:

 id24/id
 authorJustin French/author
 author_email[EMAIL PROTECTED]/author_email
 date_published2003-11-28/date_published
 introThis is my intro/intro
 bodyThis is my text and html -- say 1000 words?/body

Um, the above isn't pseudo XML. It's actually perfectly 
fine XML. Nothing pseudo about it.

 I'd love to
 hear any opinions about which would form of data
 retrieval would cause less of a performance burden on the
 server. . .

I've been wrestling with the same (or very similar) 
question: I'm trying to devise a flexible templating system 
where I can give my users control over content and inline 
formatting (allowing them to use, for example, p, em, 
span, ul) but retain control over page layout myself.

It does seem to me that XML should play a role here, but I 
haven't been able to find the right XML tools.

Ideally, the content would be stored in an XML document as 
you described. Your PHP page would use XPATH to address 
elements (or nodes) of the XML to set the value of PHP 
variables which would then be plugged into the HTML page.

XPATH allows you to do that much.

But every implementation of XPATH I've seen returns only 
the CDATA of an XML node, i.e. it strips out all the tags 
contained in the node. Thus you can't imbed formatting tags 
in the content.

(I've been tempted to go ahead and do a quick and dirty 
system using a relational DB, but such a system would break 
down from complexity over time. You would need a new table 
for each set of page components [or else devise a very 
messy and unnormal system with one grand table of columns 
with multiple uses].)

Am I missing something? Is there an implementation of xpath 
that does return the full contents of a node and not just 
the CDATA?

I guess you could use regular top-level PHP to parse an XML 
document chracter by character, 

[PHP] How to write a DLL that can play with w32api?

2003-06-14 Thread DvDmanDT
Hello, I was wondering how to write a DLL that I can use from
php_w32api.dll? I want to get the memory usage using this code:
###
dl(php_w32api.dll);
$api = new win32;
$api-definetype(MEMORYSTATUS {
long dwLength;
long dwMemoryLoad;
long dwTotalPhys;
long dwAvailPhys;
long dwTotalPageFile;
long dwAvailPageFile;
long dwTotalVirtual;
long dwAvailVirtual;
});
$api-registerfunction(long GlobalMemoryStatus (MEMORYSTATUS a) From
kernel32.dll);
$a=$api-InitType(MEMORYSTATUS);
$api-GlobalMemoryStatus($a);
print_r( $a); // Prints like [0] = Resource id #6
class MEMORYSTATUS
{
var $dwLength =0;
var $dwMemoryLoad=0;
var $dwTotalPhys=0;
var $dwAvailPhys=0;
var $dwTotalPageFile=0;
var $dwAvailPageFile=0;
var $dwTotalVirtual=0;
var $dwAvailVirtual=0;
}
$b=new MEMORYSTATUS;
$api-GlobalMemoryStatus($b);
print_r( $b);// Prints all of the names, but all values are 0

###

So I need another function to which I can pass $a and then get an int back
or something that PHP can hande... I got visual studio 6... I got cygwin as
well... I use Windows ME... Any help is appreciated...

Thanks in advance // DvDmanDT



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



Re: [PHP] Minimalistic BBcode script

2003-06-14 Thread Jason Wong
On Saturday 14 June 2003 21:53, DZ wrote:

 I found one minimalistic BBcode script, but it doesnt work.

Wouldn't it be better to find some code which *did* work?

   Warning: Unknown modifier '1' in f:\_php\_f\bb-code\test.php on line 32

 line 32 is such:

   $t = preg_replace_callback( '/[('.$atag.')(=(.*))?](.*)[/1]/isU', 'nc',
 $s);

 How to get work it?

I don't know how to get it to work, but doing

$t = preg_replace_callback( '#[('.$atag.')(=(.*))?](.*)[/1]#isU', 'nc', $s);

should at least get rid of the warning.

-- 
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
--
/*
Your love life will be happy and harmonious.
*/


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



RE: [PHP] php editor?

2003-06-14 Thread electroteque
boy how painfully dweebish is vi why make it harder for yourself :O

-Original Message-
From: Jeff Harris [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 2:48 AM
To: M-Ali Mahmoodi
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] php editor?


On Jun 14, 2003, M-Ali Mahmoodi claimed that:

|hi all
|i'm a beginner in php
|can anyone help me about useful and powerful editors in php?

vi

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

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



RE: [PHP] Re: php editor?

2003-06-14 Thread electroteque
possibly not free though ?

-Original Message-
From: Aliaksei Kurets [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 9:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: php editor?


The best PHP editor I know is Zend Studio. This is a real good editor with
debugging, highlighting and very good code complete.


M-Ali Mahmoodi [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:[EMAIL PROTECTED]
 hi all
 i'm a beginner in php
 can anyone help me about useful and powerful editors in php?






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



Re: [PHP] Re: php editor?

2003-06-14 Thread Aliaksei Kurets
Not free... hmmm (this is very argue point :)))

Electroteque [EMAIL PROTECTED] ???/ ? 
?: news:[EMAIL PROTECTED]
 possibly not free though ?

 -Original Message-
 From: Aliaksei Kurets [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 14, 2003 9:15 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: php editor?


 The best PHP editor I know is Zend Studio. This is a real good editor with
 debugging, highlighting and very good code complete.


 M-Ali Mahmoodi [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
 ÓÌÅÄÕÀÝÅÅ: news:[EMAIL PROTECTED]
  hi all
  i'm a beginner in php
  can anyone help me about useful and powerful editors in php?
 
 
 



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



[PHP] SELECT MULTIPLE form variable?

2003-06-14 Thread Noel Wade
Hi all,

So I was under the impression that an HTML form SELECT MULTIPLE item would
return an array with all of the selected items.  This array can then be used
with any of the standard PHP array functions, yes?

I have 1 HTML page that seems to work fine...  However, another page that is
nearly identical is failing - giving me the following error:  Wrong
datatype for second argument in call to in_array.  When I look at the
variable, it seems to ONLY contain a string - the first item the user
selected.

The only difference I can see is that the working SELECT MULTIPLE has
numerical values, and the dysfunctional one uses string values - but the
values ARE enclosed in quotation-marks... so I don't know why they're not
POSTing properly as an array.  Is this a known bug or issue?  Any thoughts
or solutions?

Thanks a bunch, take care,

--Noel



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



Re: [PHP] SELECT MULTIPLE form variable?

2003-06-14 Thread Leif K-Brooks
You need to name it formfield[], not formfield.

Noel Wade wrote:

Hi all,

So I was under the impression that an HTML form SELECT MULTIPLE item would
return an array with all of the selected items.  This array can then be used
with any of the standard PHP array functions, yes?
I have 1 HTML page that seems to work fine...  However, another page that is
nearly identical is failing - giving me the following error:  Wrong
datatype for second argument in call to in_array.  When I look at the
variable, it seems to ONLY contain a string - the first item the user
selected.
The only difference I can see is that the working SELECT MULTIPLE has
numerical values, and the dysfunctional one uses string values - but the
values ARE enclosed in quotation-marks... so I don't know why they're not
POSTing properly as an array.  Is this a known bug or issue?  Any thoughts
or solutions?
Thanks a bunch, take care,

--Noel



 

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


Re: [PHP] SELECT MULTIPLE form variable?

2003-06-14 Thread Noel Wade
Its the littlest things that kill ya  Thanks a ton!

As a side note, I definitely do NOT have the brackets on the working page -
so its an undefined feature (or bug) that numerical-value SELECT MULTIPLE
variables post as an array to PHP.

Take care, and thanks again!

--Noel

- Original Message -
From: Leif K-Brooks [EMAIL PROTECTED]
To: Noel Wade [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 1:26 PM
Subject: Re: [PHP] SELECT MULTIPLE form variable?


 You need to name it formfield[], not formfield.

 Noel Wade wrote:

 Hi all,
 
 So I was under the impression that an HTML form SELECT MULTIPLE item
would
 return an array with all of the selected items.  This array can then be
used
 with any of the standard PHP array functions, yes?
 
 I have 1 HTML page that seems to work fine...  However, another page that
is
 nearly identical is failing - giving me the following error:  Wrong
 datatype for second argument in call to in_array.  When I look at the
 variable, it seems to ONLY contain a string - the first item the user
 selected.
 
 The only difference I can see is that the working SELECT MULTIPLE has
 numerical values, and the dysfunctional one uses string values - but the
 values ARE enclosed in quotation-marks... so I don't know why they're not
 POSTing properly as an array.  Is this a known bug or issue?  Any
thoughts
 or solutions?
 
 Thanks a bunch, take care,
 
 --Noel
 
 
 
 
 

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



Re: [PHP] php editor?

2003-06-14 Thread Gerard Samuel
Because some of us, work directly on the server, instead of modifying 
files, then uploading to the server to test :)

electroteque wrote:

boy how painfully dweebish is vi why make it harder for yourself :O



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


RE: [PHP] php editor?

2003-06-14 Thread Lars Torben Wilson
On Sat, 2003-06-14 at 12:59, electroteque wrote:
 boy how painfully dweebish is vi why make it harder for yourself :O

Please don't start this again. If you want arguments about editors just
read the old ones in the archives. It's highly unlikely that any useful
new arguments will be made if we start a new flamewar over it. :) Just
suggesting one or two editors you like is more useful.



-- 
 Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
 http://www.thebuttlesschaps.com  http://www.inflatableeye.com
 http://www.hybrid17.com  http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com -




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



Re: [PHP] Very Wierd Problem

2003-06-14 Thread John W. Holmes
James E Hicks III wrote:

\0 is a NULL character, IIRC. Either use single quotes:
echo ('EBCO\030774-006\BUBBLER VALVE');
or use two slashes, like you did above:
echo (EBCO\\030774-006\\BUBBLER VALVE);
---John Holmes...


Problem is that this description is coming from a DB, that's 
why I was trying to use addslashes, which caused me the same
problems. 
Use mysql_escape_string().

$safe = mysql_escape_string('EBCO\\030774-006\\BUBBLER VALVE');

$query = insert into table (field) values ('$safe');

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals  www.phparch.com





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


[PHP] manually unserializing session data

2003-06-14 Thread Andrew Warner
How do you manually unserialize session data? Using unserialize() on 
session data from a sessions table is not working for me.

I have modified the gc function of my MySQL session handler to save 
data  from expired session records to another table, 
'sessions_saved'.   I can get the session data out and into the 
sessions_saved table okay, but i can't restore some of the saved 
session variables i need for field values in the sessions_saved table.

In the code below, $sess_data['pid'] is always empty even though I 
can see it and its value in the serialized session data.  The $pid 
value has already been set to a session value using: 
session_start(); $_SESSION['pid'] = $pid



function mysql_sess_gc ($sess_maxlife)
{
  (code here to query session table for expired sessions)

// loop thru expired sessions and save to 'sessions_saved' table:
while (list($sess_id,$data) = mysql_fetch_array($r))
{
   $sess_data = unserialize($data);
   $pid = $sess_data['pid'];
   $sid = $sess_data['sid'];
   //store sessions in saved_sessions table
   $query =  INSERT INTO sessions_saved (id,pid,sid,data) VALUES 
('$sess_id',$pid,$sid,$data);

   $result = mysql_query ($query, $mysql_sess_conn_id);
}
  (...now delete expired sessions from sessions table)

}

andrew

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


[PHP] Formatting issue.

2003-06-14 Thread Tom Ray [Lists]
I'm having a bit of a formatting issue, and I was wondering if someone 
might have an idea on how to solve it. Basically what I have right now 
is a script that opens and reads the content of an image directory, each 
time the script is accessed it writes the contents out to a text file 
for me. I then open that text file and read it's contents, I want to be 
able to display thumbnail versions of the pictures, 3 per row and as 
many rows as needed. Unfortunetly, all I can do right now is 1 per row, 
this is where I need the help. Here's the code that displays images:

$dat=$_GET[gallery].dat; 
$file=fopen($dat, 'r');
$contents = fread ($file, filesize ($dat));
fclose($file);
$img=explode(|,$contents);   
  
print table width=50% cellpadding=0 cellspacing=3 border=0;

foreach($img as $image) {
   if($image) print trtda href=$imageimg src=\$image\ 
width=150 height=100/a/td/tr;
}
print /table;

So how do I make this work so I can have three cells per table row and 
it actaully show the proper picture?

TIA

Tom

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


Re: [PHP] Formatting issue.

2003-06-14 Thread Tom Ray [Lists]
with the proper line breaks:

$dat=$_GET[gallery].dat;
$file=fopen($dat, 'r');
$contents = fread ($file, filesize ($dat));
fclose($file);
$img=explode(|,$contents);
print table width=50% cellpadding=0 cellspacing=3 border=0;

foreach($img as $image) {
  if($image) print trtda href=$imageimg src=\$image\ 
width=150 height=100/a/td/tr;
}
print /table;

Tom Ray [Lists] wrote:

I'm having a bit of a formatting issue, and I was wondering if someone 
might have an idea on how to solve it. Basically what I have right now 
is a script that opens and reads the content of an image directory, 
each time the script is accessed it writes the contents out to a text 
file for me. I then open that text file and read it's contents, I want 
to be able to display thumbnail versions of the pictures, 3 per row 
and as many rows as needed. Unfortunetly, all I can do right now is 1 
per row, this is where I need the help. Here's the code that displays 
images:

$dat=$_GET[gallery].dat; $file=fopen($dat, 'r');
$contents = fread ($file, filesize ($dat));
fclose($file);
$img=explode(|,$contents); print table 
width=50% cellpadding=0 cellspacing=3 border=0;

foreach($img as $image) {
   if($image) print trtda href=$imageimg src=\$image\ 
width=150 height=100/a/td/tr;
}
print /table;

So how do I make this work so I can have three cells per table row and 
it actaully show the proper picture?

TIA

Tom




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


Re: [PHP] php editor?

2003-06-14 Thread Kevin Ison
now theres a sadistic way to code!  I used to use vi... to be honest I like
it.  but on a windows platform crimson editor works well.

Gerard Samuel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Because some of us, work directly on the server, instead of modifying
 files, then uploading to the server to test :)

 electroteque wrote:

 boy how painfully dweebish is vi why make it harder for yourself :O
 




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



[PHP] reverse DNS lookup with PHP

2003-06-14 Thread Tim Thorburn
Hi,

I'm setting up a simple tracking program for a website I'm working 
on.  Currently it records a visitors IP address, but I would like to be 
able to do a DNS lookup of these IP addresses.  Is this possible with PHP 
and if so, how is it done?  I've been looking through Google, and the very 
few real results I've come across are large perl programs which make little 
to no sense to me.

Any help would be greatly appreciated.

Thanks
-Tim


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


Re: [PHP] reverse DNS lookup with PHP

2003-06-14 Thread Tom Ray [Lists]
$_SERVER[REMOTE_HOST];

This will do a reverse lookup on their IP.

Manual Link:
http://ca3.php.net/manual/en/reserved.variables.php#reserved.variables.server
Hope it helps

Tim Thorburn wrote:

Hi,

I'm setting up a simple tracking program for a website I'm working 
on.  Currently it records a visitors IP address, but I would like to 
be able to do a DNS lookup of these IP addresses.  Is this possible 
with PHP and if so, how is it done?  I've been looking through Google, 
and the very few real results I've come across are large perl programs 
which make little to no sense to me.

Any help would be greatly appreciated.

Thanks
-Tim




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


[PHP] Re: How to write a DLL that can play with w32api?

2003-06-14 Thread DvDmanDT
Ok, I solved the problem by calling GlobalMemoryStatus() inside the DLL and
then using references to the PHP variables... Some things I noticed during
this playing:
- It seems like this code doesn't set the values of $a:
  $a=$api-InitType(MEMORYSTATUS);
  $api-GlobalMemoryStatus($a);
or php doesn't pass the object on next time, 'cause inside the DLL all
values of it was 0 when I passed it as arg... Could also possibly be the
fact that I didn't have any free memory, but that seems little wierd as I
tried more than one time...
- It crashed as soon as I passed 4 arguments or more... Could be my bad
coding though... But the same code worked with only two arguments... The
four arguments were long a1,long a2,long a3,long a4 and inside the
function they were assigned values from my MEMORYSTATUS variable... Testing
two at a time worked like I said...

I was wondering, who is the coder(s) of this extension? Does anybody know?

// DvDmanDT



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



Re: [PHP] php editor?

2003-06-14 Thread Tom Ray [Lists]
Why not just use PICO?

Kevin Ison wrote:

now theres a sadistic way to code!  I used to use vi... to be honest I like
it.  but on a windows platform crimson editor works well.
Gerard Samuel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 

Because some of us, work directly on the server, instead of modifying
files, then uploading to the server to test :)
electroteque wrote:

   

boy how painfully dweebish is vi why make it harder for yourself :O

 



 



Re: [PHP] php editor?

2003-06-14 Thread Kevin Ison
personnaly I kind of grew up on vi many many moons ago


Tom Ray [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Why not just use PICO?

 Kevin Ison wrote:

 now theres a sadistic way to code!  I used to use vi... to be honest I
like
 it.  but on a windows platform crimson editor works well.
 
 Gerard Samuel [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
 
 Because some of us, work directly on the server, instead of modifying
 files, then uploading to the server to test :)
 
 electroteque wrote:
 
 
 
 boy how painfully dweebish is vi why make it harder for yourself :O
 
 
 
 
 
 
 
 




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



[PHP] isset()

2003-06-14 Thread Daniel J. Rychlik
Having a bit of trouble with my forms returnin 1 in the form fields accept the data 
that was entered.  I think its because of this line, 

$output_fname = isset($HTTP_POST_VARS['fname']);  

I have a command action handler also that works in the same script and it seems to 
work well,  the only problem that Im having is passing back the error to the related 
filed that requires proper data.  I started just passing back a generic message so 
that I could get the routine down, once I get that I will be able to do more.  

Here is a snipit of my code.  
head
?php if ($has_errors) { ?

Please fix your errors

?php foreach($errors as $val) {

echo $val; } ?
?php } else { ?

Please fill out form. 
?php } ?

form .
HTML STUFF.

/form

?php 

if (count($errors)) $has_errors = true;  // If we find errors, then flag
if ($has_errors) $command =data_check  // Take us back to the 
data_check hidden field and set $has_errors true to 
display our errors at the top of our form.

?
head
This is really a 2 question issue, and I greatly appreicate you're time.  This is my 
2nd week learning PHP...

Thanks in advance,
Dan

   



Re: [PHP] reverse DNS lookup with PHP

2003-06-14 Thread Lars Torben Wilson
On Sat, 2003-06-14 at 14:38, Tom Ray [Lists] wrote:
 $_SERVER[REMOTE_HOST];
 
 This will do a reverse lookup on their IP.
 
 Manual Link:
 http://ca3.php.net/manual/en/reserved.variables.php#reserved.variables.server

Actually, this isn't true. $_SERVER['REMOTE_HOST'] will contain the
hostname of the client if and only if the web server has placed that
value there. Simply referring to the variable does not cause a lookup
to be done.

To do the lookup yourself, use gethostbyaddr():

   http://www.php.net/gethostbyaddr


Hope this clarifies it a bit,

Torben

 Hope it helps
 
 Tim Thorburn wrote:
 
  Hi,
 
  I'm setting up a simple tracking program for a website I'm working 
  on.  Currently it records a visitors IP address, but I would like to 
  be able to do a DNS lookup of these IP addresses.  Is this possible 
  with PHP and if so, how is it done?  I've been looking through Google, 
  and the very few real results I've come across are large perl programs 
  which make little to no sense to me.
 
  Any help would be greatly appreciated.
 
  Thanks
  -Tim


-- 
 Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
 http://www.thebuttlesschaps.com  http://www.inflatableeye.com
 http://www.hybrid17.com  http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com -




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



Re: [PHP] sessions security (no problems just question)

2003-06-14 Thread vh
JH are associated with a specific id. First, URLs carrying session ids. If
JH you link to an external site, the URL including the session id might be
JH stored in the external site's referrer logs. Second, a more active
JH attacker might listen to your network traffic. If it is not encrypted,
JH session ids will flow in plain text over the network. The solution here is
JH to implement SSL on your server and make it mandatory for users.

Also I want to note. If sids are accessible via http_referer, there is
a way to execute php scripts on behalf of a user. For example, user
clicks a link to some php script which will grab sid from referer and
then outputs a html with redirect to another script (for example to
set a forwarding filter or etc). Since sid is right and also script
was called from user's PC, this is a quite bad thing, but
unfortunately this still exists on several web based e-mails. So, be
careful in using only session mechanisms provided by PHP. It's quite
insecure.


-- 
Best regards,
Martchukov Anton aka  VHmailto:[EMAIL PROTECTED]


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



Re: [PHP] php editor?

2003-06-14 Thread Ryan A
I have tested quite a few editors since i came to php as notepad started to
p1ss me off after some time...
I have never really touched vi so cant say much about that but I think Zend
is pretty good (ill even dare say better) compared to the others(homesite,
phpedit,editplus etc)
you DO get only a 21 day trial...but you can make it a free version if you
want ;-p
Its a very good product and if you can afford it i think you should buy it
as a lot of work has gone into it and the developers deserve the $$.

Please note: I have NOTHING at all to do with ZEND (the company,site and its
software) dont bug me with arguements, this is just my opinion...my 2 cents.

HTH

Cheers,
-Ryan



- Original Message -
From: Gerard Samuel [EMAIL PROTECTED]
To: electroteque [EMAIL PROTECTED]
Cc: Jeff Harris [EMAIL PROTECTED]; M-Ali Mahmoodi
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 9:54 PM
Subject: Re: [PHP] php editor?


 Because some of us, work directly on the server, instead of modifying
 files, then uploading to the server to test :)

 electroteque wrote:

 boy how painfully dweebish is vi why make it harder for yourself :O
 


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



Re: [PHP] php editor?

2003-06-14 Thread Leif K-Brooks
I reccomend you don't talk about cracking Zend software on a list owner 
by Zend...

Ryan A wrote:

but you can make it a free version if you
want ;-p
--
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


Re: [PHP] php editor?

2003-06-14 Thread Ryan A
What can i say?
 if you aint living on the edge you're taking up too much space


 I reccomend you don't talk about cracking Zend software on a list owner 
 by Zend...



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



Re: [PHP] manually unserializing session data

2003-06-14 Thread Leif K-Brooks
http://us3.php.net/manual/en/function.session-decode.php

Andrew Warner wrote:

How do you manually unserialize session data? Using unserialize() on 
session data from a sessions table is not working for me.

I have modified the gc function of my MySQL session handler to save 
data  from expired session records to another table, 
'sessions_saved'.   I can get the session data out and into the 
sessions_saved table okay, but i can't restore some of the saved 
session variables i need for field values in the sessions_saved table.

In the code below, $sess_data['pid'] is always empty even though I can 
see it and its value in the serialized session data.  The $pid value 
has already been set to a session value using: session_start(); 
$_SESSION['pid'] = $pid



function mysql_sess_gc ($sess_maxlife)
{
  (code here to query session table for expired sessions)

// loop thru expired sessions and save to 'sessions_saved' table:
while (list($sess_id,$data) = mysql_fetch_array($r))
{
   $sess_data = unserialize($data);
   $pid = $sess_data['pid'];
   $sid = $sess_data['sid'];
   //store sessions in saved_sessions table
   $query =  INSERT INTO sessions_saved (id,pid,sid,data) VALUES 
('$sess_id',$pid,$sid,$data);

   $result = mysql_query ($query, $mysql_sess_conn_id);
}
  (...now delete expired sessions from sessions table)

}

andrew

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


Re: [PHP] php editor?

2003-06-14 Thread John Nichel
Ryan A wrote:
What can i say?
 if you aint living on the edge you're taking up too much space


I reccomend you don't talk about cracking Zend software on a list owner 
by Zend...
Living on the edge is one thing.  Biting the hand that feeds you is another.

As for the topic on hand, for Windows, I like UltraEdit, and for Linux I 
use Quanta.

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


Re: [PHP] php editor?

2003-06-14 Thread Ryan A
If you read what i originally wrote you will see that I recomend buying
zend,  I didnt give directions/info to crack anything (as i dont know how to
crack in the first place), if you can afford it compared to all the editors
i have tried zend is the best.
Besides,did I say something that we all dont already know?

Back to the topic, I have not worked on Linux (locally) as yet so have not
tired any linux programs but for windows I still go with Zend instead of
UIjust a personal preference and i am sure there are some who will share
my preference and some who wont.

Cheers,
-Ryan



- Original Message -
From: John Nichel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 1:09 AM
Subject: Re: [PHP] php editor?


 Ryan A wrote:
  What can i say?
   if you aint living on the edge you're taking up too much space
 
 
 
 I reccomend you don't talk about cracking Zend software on a list owner
 by Zend...

 Living on the edge is one thing.  Biting the hand that feeds you is
another.

 As for the topic on hand, for Windows, I like UltraEdit, and for Linux I
 use Quanta.


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



Re: [PHP] isset()

2003-06-14 Thread Daniel J. Rychlik
Why is my script autopopulating a 1 in the field names and not the orginal
values ?
Is it something to do with this statement ?
$output_fname = isset($HTTP_POST_VARS['fname']);

Im declaring the var and using it in value field in my form.  I know that I
missing something.  Its returning true when value is entered or when its not
and placing a nice 1 in every field of my form.

Im thinking
$output_fname = isset($HTTP_POST_VARS['fname']) ?  $HTTP_POST_VARS['fname']
is the answer and ive tried for several hours to fix it.

-dan

- Original Message - 
From: Daniel J. Rychlik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 4:54 PM
Subject: [PHP] isset()


Having a bit of trouble with my forms returnin 1 in the form fields accept
the data that was entered.  I think its because of this line,

$output_fname = isset($HTTP_POST_VARS['fname']);

I have a command action handler also that works in the same script and it
seems to work well,  the only problem that Im having is passing back the
error to the related filed that requires proper data.  I started just
passing back a generic message so that I could get the routine down, once I
get that I will be able to do more.

Here is a snipit of my code.
head
?php if ($has_errors) { ?

Please fix your errors

?php foreach($errors as $val) {

echo $val; } ?
?php } else { ?

Please fill out form.
?php } ?

form .
HTML STUFF.

/form

?php

if (count($errors)) $has_errors = true;  // If we find errors,
then flag
if ($has_errors) $command =data_check  // Take us back to
the data_check hidden field and set $has_errors
true to display our errors at the top of our
form.

?
head
This is really a 2 question issue, and I greatly appreicate you're time.
This is my 2nd week learning PHP...

Thanks in advance,
Dan





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



[PHP] Problem to start apache after installed PHP.

2003-06-14 Thread Niklas Janzon
Hi .. i got a problem to restart my apache (2.0.46)  server on my linux
system after i installed PHP 4.3.2.
I get this message:
 
[EMAIL PROTECTED]:/usr/local/apache2/bin/  ./apachectl restart

Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/libexec/libphp4.so into server:
/usr/libexec/libphp4.so: undefined symbol: ap_block_alarms
 
Anyone got any idea on this?
 
Kind regards
Niklas Janzon
 


RE: [PHP] php editor?

2003-06-14 Thread electroteque
err to be exact i map my directories with samba and edit straight onto the
server that way :O

-Original Message-
From: Kevin Ison [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 7:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php editor?


now theres a sadistic way to code!  I used to use vi... to be honest I like
it.  but on a windows platform crimson editor works well.

Gerard Samuel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Because some of us, work directly on the server, instead of modifying
 files, then uploading to the server to test :)

 electroteque wrote:

 boy how painfully dweebish is vi why make it harder for yourself :O
 




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



Re: [PHP] isset()

2003-06-14 Thread Justin French
$output_fname = (isset($HTTP_POST_VARS['fname'])) ? $HTTP_POST_VARS['fname']
: '';

but the value WILL be set regardless... in this case i'd prefer:

if(isset($HTTP_POST_VARS['fname'])) { $output_fname =
$HTTP_POST_VARS['fname']; }


alternatively, I wrote a nice function to pluck out $_POST vars only if
they're set.  you could easily modify it to do $HTTP_POST_VARS instead of
$_POST


http://www.weberdev.com/get_example.php3?count=3662


Justin



on 15/06/03 10:44 AM, Daniel J. Rychlik ([EMAIL PROTECTED]) wrote:

 Why is my script autopopulating a 1 in the field names and not the orginal
 values ?
 Is it something to do with this statement ?
 $output_fname = isset($HTTP_POST_VARS['fname']);
 
 Im declaring the var and using it in value field in my form.  I know that I
 missing something.  Its returning true when value is entered or when its not
 and placing a nice 1 in every field of my form.
 
 Im thinking
 $output_fname = isset($HTTP_POST_VARS['fname']) ?  $HTTP_POST_VARS['fname']
 is the answer and ive tried for several hours to fix it.
 
 -dan
 
 - Original Message -
 From: Daniel J. Rychlik [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 14, 2003 4:54 PM
 Subject: [PHP] isset()
 
 
 Having a bit of trouble with my forms returnin 1 in the form fields accept
 the data that was entered.  I think its because of this line,
 
 $output_fname = isset($HTTP_POST_VARS['fname']);
 
 I have a command action handler also that works in the same script and it
 seems to work well,  the only problem that Im having is passing back the
 error to the related filed that requires proper data.  I started just
 passing back a generic message so that I could get the routine down, once I
 get that I will be able to do more.
 
 Here is a snipit of my code.
 head
 ?php if ($has_errors) { ?
 
 Please fix your errors
 
 ?php foreach($errors as $val) {
 
 echo $val; } ?
 ?php } else { ?
 
 Please fill out form.
 ?php } ?
 
 form .
 HTML STUFF.
 
 /form
 
 ?php
 
 if (count($errors)) $has_errors = true;  // If we find errors,
 then flag
 if ($has_errors) $command =data_check  // Take us back to
 the data_check hidden field and set $has_errors
 true to display our errors at the top of our
 form.
 
 ?
 head
 This is really a 2 question issue, and I greatly appreicate you're time.
 This is my 2nd week learning PHP...
 
 Thanks in advance,
 Dan
 
 
 
 


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



RE: [PHP] php editor?

2003-06-14 Thread Mike
One thing that works well for me (editor aside) is creating a staging server
(staging.domain.com) and doing all edits there. Then when everything is just
the way you want it, I have a script that copies everything from the staging
site to the live site.

It prevents having to work on your live production site (which can sometimes
cause problems if your changes are right the first time) and it also lets
you work on larger projects over a few days and push everything live at once
without having to copy the files in question one-by-one.

-M

-Original Message-
From: electroteque [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 9:56 PM
To: Kevin Ison; [EMAIL PROTECTED]
Subject: RE: [PHP] php editor?


err to be exact i map my directories with samba and edit straight onto the
server that way :O

-Original Message-
From: Kevin Ison [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 7:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php editor?


now theres a sadistic way to code!  I used to use vi... to be honest I like
it.  but on a windows platform crimson editor works well.

Gerard Samuel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Because some of us, work directly on the server, instead of modifying
 files, then uploading to the server to test :)

 electroteque wrote:

 boy how painfully dweebish is vi why make it harder for yourself :O
 




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





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



RE: [PHP] php editor?

2003-06-14 Thread electroteque
this is exactly what i do , edit through samaba on a development server then
cvs up to the live server

-Original Message-
From: Mike [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] php editor?


One thing that works well for me (editor aside) is creating a staging server
(staging.domain.com) and doing all edits there. Then when everything is just
the way you want it, I have a script that copies everything from the staging
site to the live site.

It prevents having to work on your live production site (which can sometimes
cause problems if your changes are right the first time) and it also lets
you work on larger projects over a few days and push everything live at once
without having to copy the files in question one-by-one.

-M

-Original Message-
From: electroteque [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 9:56 PM
To: Kevin Ison; [EMAIL PROTECTED]
Subject: RE: [PHP] php editor?


err to be exact i map my directories with samba and edit straight onto the
server that way :O

-Original Message-
From: Kevin Ison [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 7:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php editor?


now theres a sadistic way to code!  I used to use vi... to be honest I like
it.  but on a windows platform crimson editor works well.

Gerard Samuel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Because some of us, work directly on the server, instead of modifying
 files, then uploading to the server to test :)

 electroteque wrote:

 boy how painfully dweebish is vi why make it harder for yourself :O
 




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





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



[PHP] Re: Securing Source Code

2003-06-14 Thread Manuel Lemos
Hello,

On 06/14/2003 02:49 PM, Suhas Pharkute wrote:
I am developing a network application. But I need to distribute it to
different divisions.
I am looking for Ideas for Securing Source Code from User.
What you need is an encoder like Turck. It is an extension that stored 
compiled PHP code in disk files that can be loaded later without the 
need of the original sources.

http://www.turcksoft.com/en/e_mmc.htm

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] shopping cart and login system

2003-06-14 Thread Jeff Harris
On Jun 14, 2003, olinux claimed that:

|hi
|
|--- electroteque [EMAIL PROTECTED] wrote:
| hi there , i am about to build a shopping cart which
| will interact with a
| paypal payment system , the cart will use sessions
| to store the items and
| basket information before checking out and posting
| to the paypal form , what
| i'd like to know is would the cart require a login
| system to track users and
| to prevent ppl from making dodgy orders ,
|
|if pure simplicity is a goal, i dont think you need a
|login for customers. who cares if they add items and
|then dont purchase. obviously they would not be able
|to log in again to see the previous orders or current
|order status but you could always implement later.

Actually, to be more simple, for paypal paying customers, I would use
paypal's buy it now buttons. Let them deal with the shopping carts and
sessions.
http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/singleitem-intro-outside

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



[PHP] Sort locale problem

2003-06-14 Thread Johan Grönvall
Hi!

I'm trying to sort an array with strings containing swedish characters.
However, the sort order is wrong.

The following code produces abäåö while it should be abåäö.

$list = array(ö, ä, a,å,b);
setlocale(LC_ALL,se_SE.ISO8859-1);
usort($list, 'strcoll');

for($i=0;$icount($list);$i++) {
echo $list[$i];
}

Any ideas? Running  Apache/2.0.43  PHP/4.2.3  Linux 2.4.18

/Johan



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



RE: [PHP] shopping cart and login system

2003-06-14 Thread electroteque
yes i know about that but then the whole basket/cart system is out of your
hands i prefer to send the total with the products and quantities or can you
not do that ? if not i guess adding the individual items to their basket is
the only way the IPN system is confusing aswell :|

-Original Message-
From: Jeff Harris [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 15, 2003 1:31 PM
To: olinux
Cc: electroteque; Php-General
Subject: Re: [PHP] shopping cart and login system


On Jun 14, 2003, olinux claimed that:

|hi
|
|--- electroteque [EMAIL PROTECTED] wrote:
| hi there , i am about to build a shopping cart which
| will interact with a
| paypal payment system , the cart will use sessions
| to store the items and
| basket information before checking out and posting
| to the paypal form , what
| i'd like to know is would the cart require a login
| system to track users and
| to prevent ppl from making dodgy orders ,
|
|if pure simplicity is a goal, i dont think you need a
|login for customers. who cares if they add items and
|then dont purchase. obviously they would not be able
|to log in again to see the previous orders or current
|order status but you could always implement later.

Actually, to be more simple, for paypal paying customers, I would use
paypal's buy it now buttons. Let them deal with the shopping carts and
sessions.
http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/singleitem-intro-outside

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


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



[PHP] is my server working

2003-06-14 Thread Khoo Merry
I'm using windows me, server apache 1.3 for php.
I had wrote this code and tried it at local host, but the php code didn't work. The 
code is like this:
 
?
$Greet = Hello World
$Today = date(l F d, Y);
?
html
body
Today's date is
?
print($Today\n);
print($Greet);
?
/body
/html
Istead of print
Today's date is Sunday June 14, 2003
Hello World
The out put is only Today's date is. Is my server working with php?
I am really appreciate if anyone can answer my problem. 
Thank you.
 
merry



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!