At 06.04.2002 17:51, you wrote:
Hi!
I have this website with a webshop that customers can order some products.
And when the products are listed up in the cart on the screen, would I like
to get the output
into a new txtfile and save it on the server. Then it is possible to get it
faxed, and
php-general Digest 7 Apr 2002 09:08:29 - Issue 1272
Topics (messages 91889 through 91914):
Re: regular expressions: HUGE speed differences
91889 by: Chris Adams
Re: how to sort by value in associative array
91890 by: Chris Adams
91894 by: Peter J. Schoenster
The
On Sat, 6 Apr 2002, Dalton Hunter wrote:
Hi, does fopen() support the opening and reading of remote files in
directories protected with .htaccess files like ...
fopen(http://user:[EMAIL PROTECTED]/directory/file.php,r;);
If not, is there an alternative way to do this? Thanks!
If you're
Thanks! That preg_replace_callback helps alot.
-Adam
Cc Zona [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Adam Wan) wrote:
$content = 'string string 12463409834234 string string';
$content =
Craig Westerman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm needing counter for site that receives 60 to 80 hits a minute. Many I
have tried cause excessive server load and need to be deactivated or they
lose data and return to zero without warning. All
Perhaps someone can kindly help me with the following problem.
The following snippet runs perfectly when I use php_gd.dll but generates a
garbled warning message when I switch the extension to php_gd2.dll
Warning: Ép in c:\program files\apache group\apache\htdocs\test.php on
line 10
(line 10
So I should compile without axps to make the binary then recompile
--with-axps to compile the apache module again.?
Cause I want both apache module and command line.
Or will it work as a apache module without axps?
---
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
---
Ive been using Mysql/PHP for a short while - I sent this messaghe to a big
PHP group (not enough users though) about a week ago - No reply...
Can anyone help..
PS - Slingshot.co.nz doesnt have PHP - its just a text file.. - Save to your
own SQL server test, Or just review the code - No
Richard Baskett [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
What I do is strip all non-numeric numbers out and just store the number
as
a string of numbers.. Then do validation on those numbers.. Make sure the
right amount of numbers are there, valid
Hi everybody,
I'm a french newbie in PHP and I'm trying to resolve this :
?php
$rf = fopen(album.dat, r);
$row = 1;
while ($data = fgetcsv ($rf, 1000, ;))
{
$num = count ($data);
print $num;
//print p $num champs dans la ligne $row: br;
//$row++;
for ($c=0; $c$num; $c++) {
//print $data[$c] .
Would any one know why when I run command line php I get the following?
[root@*** ]# /usr/bin/php /data/web/root/***/getdata.php
X-Powered-By: PHP/4.1.2
Content-type: text/html
br
bFatal error/b: Call to undefined function: ftp_connect() in
b/data/web/root/***/getdata.php/b on line
Good morning,
Someone last month told me that there is free web based email server
platform which relies
on PHP technology. This mail server is the result of a project. I can not
remember the name
of the mail server. It is something like NMP, MNP, or NMD ???..
He also told me that
Not sure which one you are referring to but I been told SquirrelMail is
really good
http://sourceforge.net/projects/squirrelmail/
---
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
---
-Original Message-
From: Patrick Ni [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 7 April
You are probably thinking about IMP (http://www.horde.org)
This message is actually being sent from an IMP 3.0 installation and our
company is very pleased with the product.
--
Michael Geier
CDM Sports, Inc. - Systems Administrator
email: [EMAIL PROTECTED]
Quoting Chris Kay [EMAIL
Did you compile in ftp support? It's not there unless you do.
http://www.php.net/manual/en/ref.ftp.php
- Original Message -
From: Chris Kay [EMAIL PROTECTED]
Would any one know why when I run command line php I get the following?
[root@*** ]# /usr/bin/php
Thank you Michael. It is IMP and horde that I was after.
I only remembered that M or N is part of the name.
Also Thanks to Chris.
Patrick
Michael Geier [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You are probably thinking about IMP (http://www.horde.org)
Remove the double-double quotes and the newline around $image:
$img = GetImageSize($image\n);this is Line 13
It should look like:
$img = GetImageSize($image);
There is no need to double quote a variable when passing as a parm. You
would want to double quote a variable
Hi,
I got a page where I have to images (IMG), which is also a link. Is it
possible to hide an image so the user can't see it?
Regards,
Morten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you dont want user to see the image. dont put the image to the page!
Or what you want is just something different?
--
-
martina.
Morten Nielsen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I got a page where I have to images (IMG), which
Thanks for the info. Apache 1.3.24 isn't a bad release to be stuck with.
:) I just wanted to be a little bit on the bleeding edge.
Regards,
Steve
Tyler Longren [EMAIL PROTECTED] wrote in message
004001c1ddf3$13d82b90$0101a8c0@nightengale">news:004001c1ddf3$13d82b90$0101a8c0@nightengale...
My reccomendation is to design it for optimization on 800*600..as
that to me is the lowest common denominator.it will still look good
in 1024*760 therefore covering both resolutions nicely
Ron Allen wrote:
Is there a way with PHP to determine screen resolution size???
--
PHP
didn't get an replies about web-x.net and i sent them
and email and they never replied - doesn't portray a
good image
so i've looked for another hosting company and have
come up with burst.net...anybody got any reviews?
Thanks,
=
Heidi Belal
www.code-corner.com
ICQ# 32127109
A bus stops
I need to automatically create a .PDF file from a *dynamically created* text
file, then .ZIP that file up. Then *ultimately* have that file attached to
an email and automatically sent.
Can PHP do .PDF files? .ZIP Files?
The caveat on the .PDF file is; it also needs to be locked (or password
On Sunday 07 April 2002 19:37, Chris Kay wrote:
So I should compile without axps to make the binary then recompile
--with-axps to compile the apache module again.?
Cause I want both apache module and command line.
If you want both, then yes, you need to compile twice. Once using
Hi,
I got a table where I have some images and links (IMG A). They all have an
ID name. Is it possible to access them from a function through a variable?
If my link looks like:
A ID=link1 href=#/A
then in my function I would like something like:
func1( ) {
$link=link1;
$link.href=www.x.com;
Yes, PHP can do pdf and can READ zip files. I am not sure if PHP can make
the pdf unprintable, or locked.
You can find info on the pdf functions here:
http://www.php.net/manual/en/ref.pdf.php
and info on the zip functions here:
http://www.php.net/manual/en/ref.zip.php
Since those are
If you are using a function as an easy way to add links to your page, i'd
recommend that you
define a function that echoes a hfref=your function parameter in that
manner.
/Mattias
Morten Nielsen [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I got a
When i just migrated to linux instead of win2k the function
import_request_variables() is not defined anymore. I used 4.1.2 in win2k and
4.0.6 now under linux.
I was wondering if it had to do with the versions or someting. Seems odd.
Very tankful for any help that might get me to solve the
http://www.the-acr.com/codes/cntrycd.htm
Rick
A good head and good heart are always a formidable combination. But when
you add to that a literate tongue or pen, then you have something very
special - Nelson Mandela
From: Gordon Stewart [EMAIL PROTECTED]
Date: Mon, 8 Apr 2002 00:50:09 +1200
On Mon, 8 Apr 2002, Gordon Stewart wrote:
Just as a curiosity - (I dont need / Want it now - Maybe later)
Where / what site, can we get a list of the valid country/city codes ?
Someone else has already provided you with a site.
I'd just add that validating international numbers against
HI,
Is this possible?
SERVER1 with PHP some file with name xTest.php
xTest.php:
? echo(Hi from SERVER1); ?
SERVER2 without PHP some file with name file1.html
file1.html:
html
body
Server1 is saying : ?
/body
/html
How can I make HTML file (on SERVER2) say 'Server1 is saying :
HI,
Is this possible?
SERVER1 with PHP some file with name xTest.php
xTest.php:
? echo(Hi from SERVER1); ?
SERVER2 without PHP some file with name file1.html
file1.html:
html
body
Server1 is saying : ?
/body
/html
How can I make HTML file (on SERVER2) say 'Server1 is saying :
I would agree with that. When I wrote that you COULD do that.. I didn¹t
mean that I do that :) If you wanted to get down and dirty and verify
everything about that phone number you could.. Was what I was trying to get
at. But when you had all the non-numeric characters in a phone number it
Does anyone here know of any good sites where there are companies
looking for contract employees listed on them? Other then main stream
sites like Monster, Dice and so on?
Thanx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Miguel Cruz wrote:
On Mon, 8 Apr 2002, Gordon Stewart wrote:
Just as a curiosity - (I dont need / Want it now - Maybe later)
Where / what site, can we get a list of the valid country/city codes ?
Someone else has already provided you with a site.
I'd just add that validating
Thanks Jason this worked..
---
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
---
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Monday, 8 April 2002 4:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] /usr/bin/php Question
On Sunday 07 April 2002
How can I test if a number only has on bit set?
So testing different numbers will return TRUE or FALSE:
testing 0001 would return TRUE.
testing 0011 would return FALSE.
TIA
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
www.scriptlance.com
- Original Message -
From: Steve [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 07, 2002 1:28 PM
Subject: [PHP] Sites for contracts?
Does anyone here know of any good sites where there are companies
looking for contract employees listed on them?
On Sun, 7 Apr 2002, Charlie Killian wrote:
How can I test if a number only has on bit set?
So testing different numbers will return TRUE or FALSE:
testing 0001 would return TRUE.
testing 0011 would return FALSE.
Think back to math class when you were 14!
function
1. Instead of ? you could use server side includes (this would work on
SERVER2 side)
below would work on client side:
2. Some Javascript file, which could be downloaded from SERVER1, like
SCRIPT SRC=...SERVER1...
3. Use IFRAME
Maybe there are some other possibilities...
Your problem is just
php-general Digest 7 Apr 2002 21:37:54 - Issue 1273
Topics (messages 91915 through 91953):
Re: Can I fopen() files in .htaccess protected directories?
91915 by: Miguel Cruz
Re: Executing functions within ereg_replace() output
91916 by: Adam Wan
Re: counter for HIGH
This shows all integers from 1 to 10 that have the 2 least significant
bits set:
?php
for ($i = 1; $i = 10; $i++)
{
if ($i 3)
{
echo($i . \n);
}
}
?
bvr.
Charlie Killian wrote:
How can I test if a number only has on bit set?
So testing different
On Sun, 2002-04-07 at 13:38, Charlie Killian wrote:
How can I test if a number only has on bit set?
So testing different numbers will return TRUE or FALSE:
testing 0001 would return TRUE.
testing 0011 would return FALSE.
TIA
Charlie
AND them bitwise:
?php
Thanks to all those that replied. Especially Torben. (What have you been up
to?)
Miguel's solution works great.
Check out the example below:
?php
function isOneBitSet($n)
{
$x = log($n)/log(2);
return ($x == intval($x));
}
for ($i = 0; $i 32769; ++$i) {
if(isOneBitSet($i)) {
I was just wondering if there was any way to turn off the bars at the top of
the browser window with PHP. If not does anyone know a way that I could make
it so that I could pass information from a form to window that I pop open
with javascript. I would either need some way to make the window look
Do you have something against using a class for interaction with the
Authorize.net URL you are trying to open? It is possible to pass vars to the
page I'm sure but a class would work better in most cases and automate the
process for the customer.
Later,
Bob
David Johansen [EMAIL PROTECTED]
On Sat, 6 Apr 2002 18:21:10 -0600, Peter J. Schoenster
[EMAIL PROTECTED] wrote:
I tried the above.
uksort ($ArrayOfNewsLinks, SortByValue);
function SortByValue ($a, $b) {
if ($a[language] == $b[language]) return 0;
return ($a[language] $b[language]) ? 1 : -1;
}
or this
I would love to use a class. Where can I find one? I've posted on here
several times asking for examples or base code that work with Authorize.net
but no one ever responds. If you could point me to some that'd be great.
Thanks,
Dave
[EMAIL PROTECTED] wrote in message
[EMAIL
Is there a one line test for whole numbers?
I want to condense this function down to one line:
function isOneBitSet($n)
{
$x = log($n)/log(2);
return ($x == intval($x));
}
TIA,
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
There are actually a couple at least listed here.. I don't know which are
best but the one that my shopping cart uses is one of these one.. I believe
it's this one: http://zend.com/codex.php?id=619single=1
Yeah, after I looked at it, it is that one.. Adam Olsen is my programmer..
Duh.. I forgot
That post was incomprehensible. Here it is revised:
I'd like to condense the function below into one line.
function isOneBitSet($n)
{
$x = log($n)/log(2);
return ($x == intval($x));
}
AND I don't want to do this:
return (log($n)/log(2) == intval(log($n)/log(2)));
So, is there a way to
Is there one?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't now of one.
Charlie
Is there one?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.php.net/manual/en/function.preg-quote.php
Found this in the manual in about 3 secs.
Try to check the manual first before posting. ;-)
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent:
Hi, I'm trying to make a PHP script that would go in a website and log in. The website
uses cookie to authenticate with its services. I made HTTP GET requests using
fsockopen and parsed the results back into a variable. However I cannot find the
cookie info(Set-cookie) in the returned content.
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Charlie Killian) wrote:
Is there one?
I don't now of one.
That's because PHP doesn't have one, it has two:
http://php.net/preg-quote and http://php.net/quotemeta. (Read the docs
carefully; these functions escape slightly different
From the manual:
snip
Note: Because flock() requires a file pointer, you may have to use a
special lock file to protect access to a file that you intend to
truncate by opening it in write mode (with a w or w+ argument to
fopen()).
/snip
The manual indicates that you may need to use a special
Hi
Not sure if this is the best way to do it:
function isOneBitSet($n)
{
return !ereg(\.,strval(log($n)/log(2)));
}
Tom
At 09:16 AM 8/04/2002, Charlie Killian wrote:
That post was incomprehensible. Here it is revised:
I'd like to condense the function below into one line.
function
On Mon, 8 Apr 2002, Tom Rogers wrote:
At 09:16 AM 8/04/2002, Charlie Killian wrote:
I'd like to condense the function below into one line.
function isOneBitSet($n)
{
$x = log($n)/log(2);
return ($x == intval($x));
}
AND I don't want to do this:
return (log($n)/log(2) ==
Matt Friedman [EMAIL PROTECTED] wrote:
In regards to the snip above, under what circumstances might you have
to create a separate lock file? Is this an OS issue? Is it an issue when
concurrency is high? The manual says you may have to; I am looking for
some clarification as to when exactly
This is the wrong group/list for this post.
The disabling of bars, or any sort of browser feature/appearance is NOT PHP.
PHP is a server side langauge. Commonly, you would use JavaScript for such
stuff, so I recommend you check out the millions of JavaScript sites and
newsgroups on the web.
does anyone know where i could find an XML-RPC-EPI dll?
thx,
dietrich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have to wait for my host to compile php as binary for cron to work with
php, and a lot of things on my site depend on cron. Does anyone have some
sort of code that I could put at the top of all my pages so when they get
visited, it checks to see if a script has been executed yet this time
on 4/7/02 9:31 PM, Justin French at [EMAIL PROTECTED] wrote:
This is the wrong group/list for this post.
The disabling of bars, or any sort of browser feature/appearance is NOT PHP.
PHP is a server side langauge. Commonly, you would use JavaScript for such
stuff, so I recommend you check out
Hi,
I think the file you're looking for is located somewhere in the zip file for
Windows. At least I've heard it was in php 4.1.0.
Good luck,
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: dietrich [EMAIL PROTECTED]
To:
Can php execute .exe file under dos and view result on the browser ?
Rizal
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yes - look at system(), exec() and backtick in the manual (the last one
goes under a different name, I believe)
-Original Message-
From: wong [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 11:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] asking about .exe file
Can php execute
Wow, you really feel like your better than everyone here don't you.. You
rarely even give an answer that isn't blatent criticism of what someone
posted or their ability to find information. You really need to stop.
Bob
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL
nope. that was the first place i looked. thanks though!
Tyler Longren [EMAIL PROTECTED] wrote in message
002601c1dea0$c403edd0$0101a8c0@nightengale">news:002601c1dea0$c403edd0$0101a8c0@nightengale...
Hi,
I think the file you're looking for is located somewhere in the zip file
for
Windows.
Ok, that makes sense to me now. I see how you could lose some data.
Do you have any opinions on what a good algorithm might be for getting
locks without the potential for overwriting data? I suppose I could
create a second lock file which I would open using r - then, wait
for a lock on the lock
Bob,
I don't think I'm better than anyone on this list at all. We all here to
learn, and help when we can.
In fact, I also made the mistake of asking the wrong questions in here when
I first joined. It was pointed out to me that I was off topic, and I learnt
from my mistakes.
I don't know if
Hi,
Yeah, it looks like I appeared a little harsher than I intended, and I'll
try not to do that again, but the subject line, and the message reek of
JavaScript:
I was just wondering if there was any way to turn off the bars at the top of
the browser window with PHP. If not does anyone know a
I'd just add that validating international numbers against any sort of
list is bound
to lead to extreme annoyance. Even telephone companies
have trouble keeping track of
changes.
Not to mention people who will just put in valid-format-but-false numbers when
they are required
No stranger
Leif K-Brooks [EMAIL PROTECTED] wrote:
I have to wait for my host to compile php as binary for cron to work with
php, and a lot of things on my site depend on cron.
It's not my favorite solution from a security standpoint, but you could call
the PHP scripts from cron using wget or lynx. wget
HI!
Your problem is just the same as the case with counters, banners and so
Exatctly! I need this, but with counters and banners I can return GIF file
so form HTML I can say IMG SRC=server1..., but I need to send (get) som
text not picture.
1. Instead of ? you could use server side
On Monday 08 April 2002 07:00, David Johansen wrote:
I would love to use a class. Where can I find one? I've posted on here
several times asking for examples or base code that work with Authorize.net
but no one ever responds. If you could point me to some that'd be great.
1) Ever tried
On Sun, 7 Apr 2002 20:03:42 +0200, Matja¾ Prtenjak [EMAIL PROTECTED] wrote:
SERVER1 with PHP some file with name xTest.php
xTest.php:
? echo(Hi from SERVER1); ?
SERVER2 without PHP some file with name file1.html
file1.html:
html
body
Server1 is saying : ?
/body
/html
How
Will be any changes to mod_php4 since the release of apache 2.0.35?
I wanted to compile it (freebsd ports) with a apache 2.0.33 and I
had problems while compiling.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
78 matches
Mail list logo