s = array_merge($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]
>
Any pointers 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 suppor
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
Ok ... I take back what I said about & not working in a query string.
It works just fine.
But, none of this explains why I am sometimes receiving a request with &
in the query string, especially I am using '&' in the link.
The only way I think I can find out is by augmenting the error message I
November 26, 2002 11:17 AM
> To: Jonathan Rosenberg (Tabby's Place)
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: & in Query String
>
>
> Hello,
>
> "Jonathan Rosenberg (Tabby's Place)" <[EMAIL PROTECTED]> wrote:
>
> [snip]
> > I'
let you know what turns up (of course, 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: & in Query String
>
In an earlier message, Derick Rethans [mailto:[EMAIL PROTECTED]] said ...
> Yes it is. Actually, you should specify the URL with the
> & yourself, like this:
>
> otherwise it is not valid HTML.
I understand that using '&' is technically not correct HTML. But I don't
see how changing the '&'
;caption'] is failing.
What I can't figure out is why the '&' got turned into '&'. 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: http://www.php.net/unsub.php
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 N
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 PRO
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
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
> interpre
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
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" w
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 requirin
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: [EMA
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 P
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: http://www.php.net/
That line is syntactically invalid. Did you meant it to say
echo "";
--
JR
> -Original Message-
> From: Gary [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 28, 2002 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] unexpected T_STRING er
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'
'--enable-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 PRO
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 buil
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. Jus
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:
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 here
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 or
-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 wro
-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
Seems like 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
>
>
>
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 "insecur
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
portantstuff.php");
>
> But it's not ok to do any of the following:
>
> 1)
> $filename="include/reallyimportantstuff.php";
> include_once($filename);
>
> 2)
> include_once("include"."/reallyimportantstuff.php");
>
> 3)
> $root=&q
h;
>
> gave the following error:
>
> Parse error: parse error in on line
>
>
>
> Where the is the file that was doing
> the include!
>
>
>
> Previously include_once($blah) just messed up the
> scoping and global vars!
>
> Henry
>
> "Jonath
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
Out of curiosity, try
& see if it behaves differently (i.e., no parens around the
include file name).
> -Original Message-
> From: Henry [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 8:15 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] include_once("blah"); vs $blah="bl
-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 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
produces
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 func
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 mysteriou
> 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
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: [EMA
>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 un
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
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";
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 i
Sent: Thursday, May 30, 2002 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
> On Thursday 30 May 2002 21:44, 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 stan
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 b
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=value1&name2=value2 ...
Is this correct?
If so, how are the value's encoded? Is each v
-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
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]
&g
-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
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.
> -Or
h 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] co
The parser needs to "emulate" the behavior of the HTML parser,
which will match the first ?> with the opening -Original Message-
> From: Leotta, Natalie (NCI/IMS)
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 28, 2002 4:41 PM
> To: 'Jonathan Rosen
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
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
-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
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 Mess
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 corr
I do.
> -Original Message-
> From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 11:45 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Logging Errors to a File
>
>
> I am using an Apache webserver w/ PHP provided by a
> hosting c
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 c
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: http:
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
Marshall [mailto:[EMAIL PROTECTED]]
> 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
Monday, May 06, 2002 1:19 PM
> 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 sear
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
t
70 matches
Mail list logo