($languages, explode('||', $row-Language));
$languages = array_unique($languages);
--
Jonathan Rosenberg
President Founder, Tabby's Place
http://www.tabbysplace.org/
-Original Message-
From: Richard Kurth [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 01, 2004 9:27 PM
To: [EMAIL
appreciated.
--
Jonathan Rosenberg
President Founder, Tabby's Place
http://www.tabbysplace.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've been using Authorize.Net for about 6 months now am happy with them. I
use their AIM interface, which allows ,e complete control over the look feel
of the payment process. There is no problem doing everything in PHP, as long as
you have the CURL extensions they are built with SSL support.
The solution you choose for credit card verification depends on a number of
things:
- how much control you want over look feel
- whether you are rolling your own shopping cart
I happen to use Authorize.Net, which allows you to control the entire process
maintain the look feel
In an earlier message, Derick Rethans [mailto:[EMAIL PROTECTED]] said ...
Yes it is. Actually, you should specify the URL with the
amp; yourself, like this:
a HREF=show_pic.php?pic=blahamp;caption=Some+Text
otherwise it is not valid HTML.
I understand that using '' is technically not
, the problem will stop occurring
once I add this info :-).
--
JR
-Original Message-
From: Erwin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 10:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: amp; in Query String
Derick Rethans wrote:
Jonathan Rosenberg wrote:
I have
To: Jonathan Rosenberg (Tabby's Place)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: amp; in Query String
Hello,
Jonathan Rosenberg (Tabby's Place) [EMAIL PROTECTED] wrote:
[snip]
I'm missing something here. If you use 'amp;' to separate arguments on
the
query string, how do they get
Ok ... I take back what I said about amp; not working in a query string.
It works just fine.
But, none of this explains why I am sometimes receiving a request with amp;
in the query string, especially I am using '' in the A link.
The only way I think I can find out is by augmenting the error
) that the $_GET['caption'] is failing.
What I can't figure out is why the '' got turned into 'amp;'. Is a
browser doing this?
--
Jonathan Rosenberg
Tabby (RB), Lynx (RB), Licorice, Tigger,
Jet, Belle
http://www.tabbysplace.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
I suspect your problem is that CURL is not built with SSL support. To test
this, replace the https:/.../ with a reference to a non-SSL URL
(http://.../). If you get a return that, you need to build CURL with SSL
support.
--
JR
-Original Message-
From: Steve Keller [mailto:[EMAIL
Microsoft provides a program that will do just that. I believe that it gets
loaded into Word you run it from there.
If this will suffice, take a look for it on Microsoft's site. If you can't
find it, let me know. I once downloaded it can probably dig up a URL for
you.
--
JR
On Thu, 21 Nov
You need to change the first statement to
$from = From: [EMAIL PROTECTED];
--
JR
-Original Message-
From: Frank Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 15, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] mail and from line overriding
Hi,
I have
In an earlier message, Jason Wong [mailto:php-general;gremlins.com.hk] said
...
Yup. So you can have:
print I'm a $variable;
instead of the messy javascript way:
alert(I'm a . $variable);
But the language could still support variable evaluation within strings
without requiring the
In an earlier message, Marco Tabini [mailto:marcot;inicode.com] saidf ...
If I can venture a comment, what you think
clutters the code others may find a quick and
easy way to identify a variable in it.
I guess this could be true. But I don't understand why someone would need
an easy way to
In an earlier message, Larry Rosenman [mailto:ler;lerctr.org] said ...
How about:
That's the way the language designers did it, and
there's LOTS of PRODUCTION code out there that uses it.
Because that's the way it is? Well, that's good enough for me. I'll
never question anything else again
In an earlier message, Ernest E Vogelsinger [mailto:ernest;vogelsinger.at]
said ...
Think of how an interpreter works. It parses the
sourcecode in realtime, not as a compiler. People must
_wait_, every time, until it is finished,
not only once like a compiler. Thus designers of
interpreted
I thought that using fopen to create an SSL connection was not yet supported
in PHP.
I would suggest the CURL functions for this.
--
JR
-Original Message-
From: Adam Voigt [mailto:adam;cryptocomm.com]
Sent: Tuesday, November 05, 2002 12:33 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL
Do you have telnet access to the server? If so, you could download the
standalone CURL program invoke it via the
exec() function call.
--
JR
-Original Message-
From: Ben C. [mailto:benc;cox.net]
Sent: Tuesday, November 05, 2002 13:19 PM
To: Jaime Bozza; 'Adam Voigt'
Cc: [EMAIL
I have been digging through the documentation for a while, but I can't find
the answer to this ...
If I have a form with multiple submit buttons, how can I tell in PHP which
button was clicked?
--
JR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
That line is syntactically invalid. Did you meant it to say
echo lt;META NAME=$keywords CONTENT= $keywords gt;;
--
JR
-Original Message-
From: Gary [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 28, 2002 11:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] unexpected T_STRING
I've just started using the GD library in PHP to do some graphic
manipulation/creation. I find myself quite confused about how to work with
fonts.
I believe that I have both FreeType TrueType enabled, since my phpinfo()
says
'--with-freetype-dir=/usr' '--with-gd'
Can you telnet/SSH to the machine install CURL in your home directory?
You shouldn't have to be root to do this.
Or, are you trying to get CURL loaded into PHP?
--
JR
-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:21 AM
To: [EMAIL
I bet that your copy of CURL was built without SSL support, despite the fact
that PHP has SSL compiled in.
To test this, see if you have the curl shell command installed try
curl https://secure.authorize.net/gateway/transact.dll
It will probably say something like
curl built
Are you sure that the HTTP header should be on there? I don't believe that
is correct. It is the use of CURLOPT_POSTFIELDS with the curl_setopt
function that indicates that a POST is being made.
I just checked the code I used for credit card clearing it does NOT
include the HTTP headers.
I am on a server that has CURL OpenSSL enabled. I assumed that this meant
that I could do https: requests via CURL. But for some reason, my attempts
to do this are not working.
If I do a CURL http: request, everything works fine (i.e., I get the web
page, as expected). But if I use an https:
Yes, but if you're on a shared server, other users of the user will likely
be able to read your PHP files get the password.
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 23:10 PM
To: Sailom
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP]
I am thinking of moving PHP-based web site to a new server. In doing my due
diligence, I see that the new server has some different PHP configure
options.
I was able to make sense of most of them by looking through the PHP web
site. But I'm still stumped by some of them. I'm hoping people
I spent many frustrating days debugging a similar problem. I
don't understand exactly what is going on, but it seems that the
problems revolve around PHP's treatment of an integer as signed
or unsigned.
Through experimentation I determined that the way you specify an
integer constant (decimal
-Original Message-
From: Alberto Serra [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 8:54 PM
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] HTTPS vs. HTTP ?
Besides, using an HTTPS server implies
(correct me if I am wrong) consuming an IP number,
. . .
Ok ... you're wrong.
-Original Message-
From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 29, 2002 1:27 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Keeping Secrets in PHP Files
Yeah, you are assuming an environment that does
not necessarily have to be. Why must one Apache
The recent thread on security has prompted me to think about
security in a shared server environment. I want to see if my
understanding is correct ...
Let's say I am in a shared server environment the provider does
NOT have safe_mode turned on. In that case, it seems to me that
it is insecure
this just opens up the same hole. Yes?
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 28, 2002 9:43 AM
To: Jonathan Rosenberg
Cc: php-list
Subject: Re: [PHP] Keeping Secrets in PHP Files
On Friday, June 28, 2002, at 09:30 AM, Jonathan
Rosenberg wrote
How about if you just return the user to the same page? Will
that work?
-Original Message-
From: Bret L Conard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 7:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Help with forms data please
I need to send the data from a form
Out of curiosity, try
?php
global $root;
$blah=include\blah.php;
include_once $blah;
?
see if it behaves differently (i.e., no parens around the
include file name).
-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
strcmp returns 0 if the two strings are equal.
In any case, why not just do
if ($city == $city_new) $error = true;
-Original Message-
From: andy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] comparing strings does not
the including file is the file that was doing
the include!
Previously include_once($blah) just messed up the
scoping and global vars!
Henry
Jonathan Rosenberg [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Out of curiosity, try
?php
global $root;
;
include_once($filename);
2)
include_once(include./reallyimportantstuff.php);
3)
$root=include;
include_once($root./reallyimportantstuff.php);
?
Henry
Jonathan Rosenberg [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hmmm ... does the lin
I would think that if $a were a number that
echo $a;
and
printf('%d', $a);
would produce the same output. Is this correct?
Either I'm missing something, or PHP gets very confused when
dealing with some numbers. For example, the following program
?
$result =
-Original Message-
From: Jason Teagle [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 9:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP Hex Numbers
When doing arithmetic in code, you should always be
prepared to handle signed and unsigned.
Thanks for the reply. I
I need to do some encryption/decryption of data in PHP. I don't
need anything heavy duty. Just some scheme that obscures strings
in a non-trivial manner.
I am on a shared hosting site which doesn't have the mcrypt suite
installed with PHP ( they won't install it).
Does anyone know of any
What is the exact error message are you seeing?
-Original Message-
From: Craig Vincent [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 01, 2002 11:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Baffled, line producing error
I was happily coding when I came across a mysterious
Can someone point me at a site that has pre-compiled binaries for
a standalone PHP interpreter? In particular, I'm looking to use
one on Solaris.
TIA.
--
JR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From my testing, it seems that PHP (or is it Apache) ignores the
setuid bit when executing an external program (e.g., via
passthru). is this correct? if so, is there some way to
override this, so that the program will run setuid?
--
JR
--
PHP General Mailing List (http://www.php.net/)
To
Oops ... never mind. I answered my own question. I had made a
typo that was causing the problem.
External programs ARE run as setuid from PHP/Apache.
-Original Message-
From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 4:27 PM
To: [EMAIL PROTECTED
Looks like you're using fopen() incorrectly. Try:
fopen($file_name,r+);
How about just
fopen($file_name, r+);
instead. No need for the surrounding s.
--
JR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It's been a long time since I've programmed on Unix, but there
was a common technique used in C programs for invoking a program
allowing the invoker to read write to its standard
input/output. I believe it used a combination of pipes the
fdup function.
Is it possible to emulate this same
, Jonathan Rosenberg wrote:
It's been a long time since I've programmed on Unix,
but there
was a common technique used in C programs for
invoking a program
allowing the invoker to read write to its standard
input/output. I believe it used a combination of pipes the
fdup function
10:45 AM
To: Jonathan Rosenberg
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] fdup Pipes?
Yes it was. In your message you had this header:
In-Reply-To:
[EMAIL PROTECTED]
Which means you hit 'Reply' in your crappy Outlook
program, deleted the
Subject line and posted your message that way
It's been a long time since I've programmed on Unix, but there
was a common technique used in C programs for invoking a program
allowing the invoker to read write via standard input/output.
I believe it used a combination of pipes the fdup function.
Is it possible to emulate this behavior in
I'm trying to use a named pipe in PHP, but I have a feeling I'm
misunderstanding something. I'm hoping someone might have some
insight. Here's the basic outline of what I'm doing
posix_mkfifo($argfile, 0600)
$argp = fopen($argfile, w+);
$command = program $argfile;
I think the CURL library
(http://www.php.net/manual/en/ref.curl.php) is your best bet for
doing this, since you must need SSL (you mentioned credit card
authorization).
If the CURL library isn't compiled with your version of PHP, you
could use the CURL executable invoke it with exec.
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] comment followed by ? fails to parse
On Wed, 29 May 2002, Jason Wong wrote:
Yes this hightlights another shortcoming of PHP
I'm not aware of any simpler method.
Are you unable to install a stand-alone executable on the server
you are using?
-Original Message-
From: PeterV [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 11:28 AM
To: Jonathan Rosenberg; [EMAIL PROTECTED]
Subject: RE: [PHP] newbie
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 1:40 PM
To: Jonathan Rosenberg
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] comment followed by ? fails to parse
On Wed, 29 May 2002, Jonathan Rosenberg wrote:
You need to brush
This is not entirely a PHP question I should know the answer,
but ...
I'm trying to figure out how to correct the proper format for
simulating the data sent in a POST. I believe the basic syntax
is
name1=value1name2=value2 ...
Is this correct?
If so, how are the value's encoded? Is each
I would think that the first occurrence of ? would/should
terminate the PHP code. This makes sense because the surrounding
text is HTML the HTML parser does not understand PHP comments.
Yes?
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28,
BTW: if my last message was correct, this means that an
occurrence of ? embedded in a string literal will also cause
problems.
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 4:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] comment
The parser needs to emulate the behavior of the HTML parser,
which will match the first ? with the opening ? string. Make
sense?
-Original Message-
From: Leotta, Natalie (NCI/IMS)
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 4:41 PM
To: 'Jonathan Rosenberg'; Johnson, Kirk
a server that doesn't execute PHP, the
code will not appear display.
-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 4:53 PM
To: Kevin Stone; Jonathan Rosenberg; Johnson Kirk;
[EMAIL PROTECTED]
Subject: Re: [PHP] comment followed by ? fails
-Original Message-
From: Vincent Kruger [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 25, 2002 8:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Function Switch($pid) - NEED HELP
I have a script that switches.
switch($pid)
{
case 1:
break;
case 2:
break;
}
Now
Are the and operators identical in semantics to those
operators in C? In particular, do they handle sign extension in
the same manner?
--
JR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm a PHP amateur, but a quick perusal of Eval in the manual says
In PHP 4, eval() returns FALSE unless return() is
called in the evaluated code, in which case the
value passed to return() is returned. In PHP 3,
eval() does not return a value.
-Original
I am using an Apache webserver w/ PHP provided by a hosting
company I can't seem to get PHP errors logged to a file.
From reading the docs, my understanding is that I need to set
error_log to the name of a file set log_errors to on in the
php.ini file (.htaccess, in my case). Is this correct?
I am using an Apache webserver w/ PHP provided by a hosting company I can't seem to
get PHP errors logged to a file.
From reading the docs, my understanding is that I need to set error_log to the name
of a file set log_errors to on in the php.ini file (.htaccess, in my case). Is
this
Is there any way that I can use fgetcsv, but have it get its
input from a string, instead of using a file pointer?
From the online docs, there doesn't seem to be a way, but I
thought I'd check with the list.
--
JR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I would like to be able to make a client side HTTPS request from
one of my pages. From searching around, I see that I can do
everything I want using the CURL library. But the ISP I am using
does not have the CURL library installed.
I'll ask them if they'll install this library. But, assuming
To: Jonathan Rosenberg
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: Making a Client-side HTTPS Request
Jonathan Rosenberg wrote:
I would like to be able to make a client side HTTPS
request from
one of my pages. From searching around, I see that I can do
everything I want using the CURL library
]]
Sent: Monday, May 06, 2002 1:35 PM
To: Jonathan Rosenberg
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Making a Client-side HTTPS Request
What i meant was the actual curl application is
installed on the server.
Accessible from the command line at, for example,
/usr/local/bin/curl
Does fopen() actually work for https connections? I thought this
implementation was not yet released.
-Original Message-
From: Austin Marshall [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 9:40 PM
To: Craig Westerman
Cc: php-general-list
Subject: Re: [PHP] file_exists
69 matches
Mail list logo