Look into the CURL libraries.
http://www.php.net/manual/en/ref.curl.php
They essentially allow you to emulate the behavior of a browser. Where I
work, we use them to make SSL connections to payment processing
gateways.
Matthew
-Original Message-
From: Martin Thoma [mailto:[EMAIL PROTECTE
It's 1 based. It returns the number of rows. Not the index of the last
row. (Which would be 0 based.)
On Fri, 2002-06-07 at 19:23, William_dw -- Sqlcoders wrote:
> Hiya!,
> Does anyone know whether mysql_num_rows is zero or one based?
>
> that is, if I have 5 records will mysql_num_rows() return
CLI installation? Try running
> this through the CLI to check...
>
> if(extension_loaded('curl')){
> echo 'curl support present';
> } else {
> echo 'curl not found';
> }
>
> mh.
>
>
> On 7 Jun 2002, Matthew Walker wrote:
>
I have PHP installed both as a module, and as a CLI. When I use CURL
from inside the module, it works fine for all connections, including
SSL. When I use the CLI, I can't make SSL connections with CURL. It just
returns 'false'. Anyone know why?
--
PHP General Mailing List (http://www.php.net
Just attempt to connect. If it succeeds, the server is alive.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Scott St. John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 6:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL Server test tool
When you create an array this way, no numeric indexes are assigned.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Robert Rothe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] I'm
I'm writing a coding standards document for our programmers, and I need
to know if the 'echo' shortcut PHP tags are always on, or if we need to
assume they might not be on.
(By echo shortcut, I mean this syntax: )
Matthew Walker
Senior Software Engineer
ePliant Marketing
--
Actually, it is $PHP_SELF. Try $_SERVER['PHP_SELF']
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Weston Houghton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 6:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP 4.2x changes
Blah. That's a really ugly choice, but I suppose we may end up having to
do that.
I'd give my kingdom for always-on cookies. Ah well. I'll look into this
some more once my current project is finished. Thanks for your advice.
(And thanks to everyone else too)
Matthew Walker
see how this could be used to maintain
session data.
But maybe my mind is just trapped in a rut. Please enlighten me.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 6:04 PM
To: Matth
You're not understanding the problem. This is not an authentication
situation. We are using sessions to track information about what a
customer's OrderID is, and other related information.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
Fr
The sites are not dynamic, but the shopping cart /is/. The problem is,
if people don't have cookies on, when they return to the site to order
more products, they loose the SID that has been appended to the links
inside the cart, and thus loose the contents of their shopping cart.
Matthew W
ully dynamic to accommodate it.
So, is there any reliable way to emulate sessions without requiring a
cookie, or a variable passed in every URL?
Matthew Walker
Senior Software Engineer
ePliant Marketing
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://
I prefer to use isset(), not empty(). It's more accurate, in that it
knows the difference between a variable that just isn't set, and one
that has an empty value (which may be valid).
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Ph
le to keep going.
(Or maybe I'm just too lazy to take the tremendous amount of time it
would take to rewrite our code to not send output before headers...)
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Olexandr Vynnychenko [mailto:[EMAIL PR
un,
and be sure to ask if you have any more questions. I always try and
answer questions on the list if I have the time, and know the answer.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: r [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 11, 2002 7:2
Try this:
");
for($i=0; $i < count($a1); $i++) {
{
echo($a2[$i]);
if ($i != (count($a1) - 1)) {
echo ",";
}
}
?>
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: r [mailto:[EMAIL PROT
Might I suggest using PHP's urlencode() to encode the string, and
Javascript's function unescape()?
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 11:37 AM
To: [EMAIL
Actually, if he uses a negative index in substr(), he doesn't need to
know the length of the string.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 9:29 PM
To: Craig West
Also, non-Unicode TTF fonts will /not/ work with PHP.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Rahul Bhide [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 9:45 PM
To: zhaoxd
Cc: php mailling list
Subject: Re: [PHP] Can php support ttf
I'd recommend this script with a few changes.
);
for($i=0; $i);
}
?>
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: CDitty [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 21, 2002 8:47 PM
To: Liam MacKenzie; PHP
Subject: Re: [PHP] M
Sounds really good to be! Now if they would code this into PHP, it would
be perfect. This would solve several security issues.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Amit Arora [mailto:[EMAIL PROTECTED] (nospam)]
Sent: Wednesday, April 17
Use this:
if (function_exists("imagettftext")) {
//TTF Exists
} else {
//TTF Doesn't exist
}
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Jackson Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 12:4
I think what I'm going to end up doing, is using a perl CGI script to do
this part. I /know/ perl can do it easily, and I won't have to hack
together my own threading code.
Thanks for the suggestions though.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Origin
Won't work for web connections, because it waits for each connection to
complete before running the next one.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Richard Creech [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 14, 2002 1:46 PM
To: [
shipping rates to display on a page. If you had to query them
one at a time, the delay would be unacceptable. However, with that perl
module, you could query them all at the same time, making it much
faster.
Does anyone know if such a thing exists for PHP?
Matthew Walker
Senior Software Engineer
Never mind. I managed to find a free code 39 barcode font that /is/
Unicode compatible, and it works.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Matthew Walker
Sent: Thursday, April 11, 2002 3:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP
a problem.
Ive read that a font wont work with PHP if it isnt Unicode
compatible. Is there any way I can check this? Or is something else
probably wrong?
Matthew Walker
Senior Software Engineer
ePliant Marketing
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
passes the referrer properly.
Matthew Walker
Senior Software Engineer
ePliant Marketing
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.345 / Virus Database: 193 - Release Date: 4/9/2002
--
PHP General Mailing List (http
EditPlus is a great editor, with the added benefit of a built in FTP
client.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Steve Klugherz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 8:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP
were run. The queries consist of the same kind you would be
using.
Debug Data
This page was generated in 0.030305027961731 seconds.
9 queries executed.
----
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Craig West
Because $a=5 is not 'empty'.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: bob [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 5:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] what is the difference between function and language
A quick search on google told me this:
phpfx is a website with the goal of providing free and quality open
source php scripts
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20
You must place session_start() before any other /output/. It can come
after other code, as long as nothing will be output before it.
Alternately, you can turn on output buffering and just not worry about
it.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message
Yes. MySQL is as stable as the box you run it on. ;)
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 10:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql 4 windows
Does anyone
Sure is legal. I use it all /over/ the place.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Gary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PEAR DB class
Hi all,
Before I get
I'd definitely check Line 19. You probably forgot a ;
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Jason Whitaker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 4:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Parse Error
Ok I got
This is too much for a text file. You should definitely use MySQL for
this.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Georgie Casey [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] A
What type of field is 'ip'?
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Trying to put ips into database
I'm
The entire browser has to close down to clear the auth data.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 4:41 PM
To: Matthew Walker; Aras Kucinskas; [EMAIL PROTECTED]
Subject
I've done some investigating on my own. There is no way to do this.
Period.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Matthew Walker
Sent: Friday, February 01, 2002 3:37 PM
To: Aras Kucinskas; [EMAIL PROTECTED]
Subject: RE: [PHP] PH
Does anyone have the answer for this question? I need it too...
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Aras Kucinskas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Apache
You need to send the headers to tell the browser what kind of data
you're sending. Try something like this:
header("Content-type: image/png");
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PR
Did you remember to seed it?
See http://www.php.net/manual/en/function.mt-srand.php for info on how
to seed it.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 1:02 PM
I'd imagine it's because windows zend has to compile them in a slightly
different manner.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 12:41 PM
To: php-li
Exactly. The point of MD5 is that there is no way to get the password
back. This makes things much more secure if your site gets hacked.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday
Looking at what you wanted to do, I realized this isn't going to work.
That line of code will put a BR between each of the first 19 words.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Matthew Walker
Sent: Wednesday, January 30, 2002 12:47
Note that you can do this:
print "$row[field_name]";
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Bryan Gintz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 11:49 AM
To: PHP List
Subject: [PHP] MySQL Fetch_Array VS. Fe
$statement=preg_replace("/ /","",$original,19);
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 12:35 PM
To: Php-General
Subject: [PHP] preg_replace
I downloaded the current version to test, and I don't know how you call
it stable enough to use. I continually get permission denied errors
accessing the DB. Some of them go away if I refresh, others don't. And
yes, the user has full permissions to the relevant DB.
Matthew Walker
eturn-Path: $SiteInfo[Email]\nReply-To:
$SiteInfo[Email]");
arsenic.mth.com is the LAN name of my box. How can I get PHP to send
mail as if it was from the DNS name for the box (mthmarketing.com)?
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
---
Outgoing mail is
I solved it using Javascript to get the referrer of the parent doc, and
pass it as a get request.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Matthew Walker
Sent: Thursday, January 03, 2002 3:46 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] More
image, and I can't assume it's php. Any advice?
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Billy Harvey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 3:25 PM
To: Matthew Walker
Subject: Re: [PHP] More on images...
On Thu, 2
Related to my last question about the cookies in images, is there any
way to get the referrer from the calling page without passing it as an
argument to the image generation script?
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
---
Outgoing mail is certified Virus Free.
Checked
Thanks. That's what I suspected, but I needed to make sure.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Bas van Rooijen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 2:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Cooki
Can anyone give me a pointer on where to go to find out how to send
cookies through images, preferably in PHP?
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.310
Welcome to the world of free software.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Andrew V. Romero [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 9:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Licensing??
I am looking into
So, can someone give me the spot to look in the documentation to find
out how to make this switch?
-Original Message-
From: Chris Hobbs [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 4:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Submitting variables via /'s
Joao Prado
hat most users can't use PHP. They'll have to pay a (very
small) monthly fee to have access to it. This is partly as a very loose
security measure, so that not everyone has access to PHP.
--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
---
Outgoing mail is certified Virus F
Thanks. That will work quite nicely.
-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 1:20 PM
To: Matthew Walker; [EMAIL PROTECTED]
Subject: RE: [PHP] PEAR DB Questions
don't know about pear, but in case you can't do it,
e
Autoincriment ID of the last insert you performed. How do I get that
information with the PEAR DB module?
--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Viru
ne provide a quick set of examples for
how to use the class functions? I haven't done OO programming in a long
time, and I've never done it in PHP.
--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
---
Outgoing mail is certified Virus Free.
Checked by AVG ant
But those pieces would need to use the same session as if they were on
/our/ server.
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 10:25 PM
To: Matthew Walker
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: Sessions and include()...
I believe
What happens if you use include() to include a file from another server,
and that file sets a session? Does the session get set for the domain of
the wrapper page, or does it get set for the domain of the included
page?
--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
Okay... This is odd. Despite the fact that
'print_r(ini_get("include_path"));' returns the right include_path, I
just checked the php.ini file, and lo and behold, there is no include
path set. So... Have I just discovered a bug?
-Original Message-
From: Matthew W
Checked that. Plenty of permissions.
Anyone else have any idea?
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 1:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] include() problem...
Check the permissions on both the directory and the
(.:/usr/lib/php) and when I do
'print_r(ini_get("include_path"));' it prints it properly. But when I
try and do an include, I get the following error.
Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='')
in /usr/local/httpd/htdocs/te
I
try and do an include, I get the following error.
Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='')
in /usr/local/httpd/htdocs/test.php on line 2
Help? Please? I'm at a loss as to how to fix this, and I kind of need
to.
--
Matthew Walker
Ecommer
68 matches
Mail list logo