Hi Kristina,
have you tried the lates cvs snap? I know there was some problems with
apache2 and mod_rewrite maybe it is solve in CVS.
--
Marco Kaiser
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
AFAIK, in PHP5 one can't call function with function parameters .
The error is that you only can pass variables by reference.
foo(strlen('aaa'),strlen(''));
Is there some sort of workaround ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
I found the source of my mod_rewrite problems. I was doing everything
right to start with - The odd behaviour was due to a PHP bug (http://
bugs.php.net/bug.php?id=35059) that's fixed in 4.4.2-dev and 5.1.0RC7-
dev (I'd assume 5.0.x as well). Recompiling with a new checkout works
fine.
Marc
Georgi,
You should assign the output of the functions to variables before the
call and use those variables as the parameters.
Cheers,
David Grant
Georgi Ivanov wrote:
> Hi,
> AFAIK, in PHP5 one can't call function with function parameters .
> The error is that you only can pass variables by ref
On 19 Nov 2005, at 04:07, Curt Zirzow wrote:
If you are using mysql i would use the SQL_CACHE flag, it will
eliminate the need for you to manage the cache.
You don't necessarily need to us the SQL_CACHE flag in queries - you
can just turn on the query cache globally using query_cache_type=1
Georgi Ivanov wrote:
Hi,
AFAIK, in PHP5 one can't call function with function parameters .
The error is that you only can pass variables by reference.
which means that you can't use a function call as the argument to a
function that required the argument to be passed by reference, if the
argume
Dylan wrote:
Hi
Is it possible to use the ($test)?$true:$false construction in a (double
quoted) string without dropping out of the string and concatenating? I have
many lines like:
$var = "first part of string ".(($a==$b)?$c:$d)." rest of string";
and I feel it would be more elegant to be abl
On 21 Nov 2005, at 09:26, Georgi Ivanov wrote:
AFAIK, in PHP5 one can't call function with function parameters .
The error is that you only can pass variables by reference.
foo(strlen('aaa'),strlen(''));
You can call functions like that without problems UNLESS the function
is expecting v
Marcus Bointon wrote:
On 19 Nov 2005, at 04:07, Curt Zirzow wrote:
If you are using mysql i would use the SQL_CACHE flag, it will
eliminate the need for you to manage the cache.
You don't necessarily need to us the SQL_CACHE flag in queries - you
can just turn on the query cache globally u
On 18 Nov 2005, at 20:13, Dylan wrote:
$var = "first part of string ".(($a==$b)?$c:$d)." rest of string";
and I feel it would be more elegant to be able to do something like:
$var ="first part of string {(($a==$b)?$c:$d)} rest of string";
Strange as it may seem, you'll probably find that th
On 21 Nov 2005, at 10:54, Jochem Maas wrote:
having said that I don't use __autoload() - I did but it was just a
PITA -
I thought it was a good idea for a while... One major irritation with
it is that with standard error reporting you can't tell where a
missing class can't be found from (
xkorakidis wrote:
Hi,
How can I present into pages the result of sql select? (e.g. pages of 10
records)
by performing queries that only grab part of the data and passing along a
variable in the relevant urls that allow you to see how far along
in the list you are (i.e. what page).
the term you
On 20 Nov 2005, at 15:14, Geert Booster wrote:
PHP 4.4.0, since PHP developers seem not interested in
fixing the bug with apache2 and mod_rewrite
I think you might find this bug report of interest, especially since
it's been fixed: http://bugs.php.net/bug.php?id=35059 It's certainly
fi
Georgi Ivanov schrieb:
> Hi,
> AFAIK, in PHP5 one can't call function with function parameters .
> The error is that you only can pass variables by reference.
> foo(strlen('aaa'),strlen(''));
>
> Is there some sort of workaround ?
First of all, the problem with this arises if your function fo
Andy Pieters schrieb:
> Is there anyone that can provide a solution to this or suggest another
> approach to the problem?
First of all something about packages: PEAR is coming up with their own
format ".phar" for this. These are tar archives that may contain an
additional PHP script that is exec
Thanks so much Jochem,
I found some things in phpclasses (good material, bad design) and I'll
try that.
Thanks!
Jochem Maas wrote:
> xkorakidis wrote:
>> Hi,
>> How can I present into pages the result of sql select? (e.g. pages of 10
>> records)
>
> by performing queries that only grab part of th
Thanks !
It's all clear now .
:)
On Monday 21 November 2005 14:45, Oliver Grätz wrote:
> Georgi Ivanov schrieb:
> > Hi,
> > AFAIK, in PHP5 one can't call function with function parameters .
> > The error is that you only can pass variables by reference.
> > foo(strlen('aaa'),strlen(''));
> >
I'm helping a friend of mine build a matchmaking website, and we have a
doozy of a problem to solve:
What I need to do is two fold:
#1 Collect whatever geographical information I need from each user to enable
#2
#2 Be able to run query's to find people NEAR (geographically) another
person.
Does
Hi Tony,
I would think the first step would be to find a web service or dataset
to convert a zip code to longitude/latitude.
The formula for calculating distances from long/lat is available here:
http://www.colorado.edu/geography/gcraft/warmup/aquifer/html/distance.html
Cheers,
David Grant
To
>
> I'm helping a friend of mine build a matchmaking website, and
> we have a
> doozy of a problem to solve:
>
> What I need to do is two fold:
>
> #1 Collect whatever geographical information I need from each
> user to enable
> #2
> #2 Be able to run query's to find people NEAR (geographicall
and I feel it would be more elegant to be able to do something like:
$var ="first part of string {(($a==$b)?$c:$d)} rest of string";
$templateStr = 'first part of string %s rest of string';
$outputStr = sprintf($templateStr, (($a==$b)?$c:$d));
That is so totally slick! I'm definitely going t
On Mon, 2005-11-21 at 09:42, Chris Boget wrote:
> >> and I feel it would be more elegant to be able to do something like:
> >> $var ="first part of string {(($a==$b)?$c:$d)} rest of string";
> > $templateStr = 'first part of string %s rest of string';
> > $outputStr = sprintf($templateStr, (($a==
Robert Cummings wrote:
On Mon, 2005-11-21 at 09:42, Chris Boget wrote:
and I feel it would be more elegant to be able to do something like:
$var ="first part of string {(($a==$b)?$c:$d)} rest of string";
$templateStr = 'first part of string %s rest of string';
$outputStr = sprintf($template
On Mon, 2005-11-21 at 10:02, Richard Heyes wrote:
>
> Readability is in the eye of the beholder.
But efficiency isn't ;)
Cheers,
Rob
--
..
| InterJinn Application Framework - http://www.interjinn.com |
:-
Robert Cummings wrote:
On Mon, 2005-11-21 at 10:02, Richard Heyes wrote:
Readability is in the eye of the beholder.
But efficiency isn't ;)
Try measuring the difference between the various methods over a
realistic number of iterations, eg. 100. There's little point in going
through ones
Richard Heyes wrote:
Robert Cummings wrote:
On Mon, 2005-11-21 at 10:02, Richard Heyes wrote:
Readability is in the eye of the beholder.
But efficiency isn't ;)
yes it is actually - everything is in the eye of the beholder.
it just so happens that we often have consensus ;-)
with regar
Anyone have any suggestions? I'm still stuck.
thanks,
kgt
Kristen G. Thorson wrote:
I'm having problems with a customer who can't login to a wholesaler
application. To ensure the problem was that the cookie was not being
set, I sent him to this script:
if( !isset( $_REQUEST['page'] ) )
[snip]
Anyone have any suggestions? I'm still stuck.
[/snip]
Can you send him another test where a basic cookie gets set and then
checked?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote:
[snip]
Anyone have any suggestions? I'm still stuck.
[/snip]
Can you send him another test where a basic cookie gets set and then
checked?
.
Not sure what you mean. I sent him to this script:
Test cookie.';
} else if( $_REQUEST['page'] == '1' ) {
if( isset( $_COO
[snip]
Not sure what you mean. I sent him to this script:
Test cookie.';
} else if( $_REQUEST['page'] == '1' ) {
if( isset( $_COOKIE['VATtest'] ) ) {
echo $_COOKIE['VATtest'];
} else {
echo 'Cookie NOT set.';
}
}
?>
Which is all I had in entirety. Is this not a "basic cookie?"
[/snip]
Hi,
I have a form on my page that has many file input fields:
File A:
File B:
...
I have looked on php.net and there is a way to upload an array of files but
one would need to make the name of all the input fields are the same. I need
to make sure that the file uploaded i
> > Does anyone know of any commercial or free implementations of
> > this? Is it
> > primarily a database problem or is their some way (computationally) to
> > compute the probable proximity of two zip codes?
There is a class called zipLocator. I think I found it at
phpclasses.org. It uses a
Sorry, my brain's running on one cylinder this morning, but maybe this helps:
http://us2.php.net/manual/en/features.file-upload.multiple.php
If not, excuse my waste of bandwidth :)
-TG
= = = Original message = = =
Hi,
I have a form on my page that has many file input fields:
File A:
Hi All,
I have developed this form where people click the check boxes of interested
phone numbers which gets emailed to me.
My ACT guys tells me I need to print all the Check Box values as unique fields
for his intake.
I have posted the problem in detail in following URL:
http://www.primarywav
Jay Blanchard wrote:
[snip]
Not sure what you mean. I sent him to this script:
Test cookie.';
} else if( $_REQUEST['page'] == '1' ) {
if( isset( $_COOKIE['VATtest'] ) ) {
echo $_COOKIE['VATtest'];
} else {
echo 'Cookie NOT set.';
}
}
?>
Which is all I had in entirety. Is this not a "basi
[snip]
>Sorry, I should have paid more attention. Is $_REQUEST['page'] correctly
set
>when (print_r the array...just for giggles)
I can verify $_REQUEST is correct for me, and I'm sure it's correct for
him too, since he gets "Cookie NOT set." The second if statement
requires $_REQUEST['page'] t
Hi Kristen,
Monday, November 21, 2005, 4:48:26 PM, you wrote:
> I've been looking through the comments in the manual, and several
> people mention privacy policies creating a problem in IE. My problem
> is none of this can be duplicated on my machine (or any other so
> far), and this customer is
Hi,
I just installed the latest available snap, and now I'm seeing a zend
error, but not a sapi error:
Reading symbols from /home/sys/Zend/lib/ZendExtensionManager.so...done.
Loaded symbols for /home/sys/Zend/lib/ZendExtensionManager.so
Error while reading shared library symbols:
.//home/sys/Zend
Hi Kristina,
I think there is no version available for 5.1.0-cvs. Try to remove the
Zend Extensions and give me please feedback.
> I just installed the latest available snap, and now I'm seeing a zend
> error, but not a sapi error:
--
Marco Kaiser
--
PHP General Mailing List (http://www.php.net/
Hi
Does anyone know of an open source or commercial php library for parsing
decision tables? Or failing that, a more general business rules parser?
I can't find anything on the usual php script sites.
Unless I'm missing something, this seems to be a gap - in the Java world
there is a wide choice
hello,
I have what may seem like a small problem but its not obvious to me.
I have a script that I forked and that part works fine, it forks, tells me
the pid like I wanted, and keeps running. Well, the problem that was not
apparent to me until about 3 days ago when I was wondering why the
scr
If you named the fields like this:
Then did something like (or whatever):
$error) {
echo $key."";
echo $_FILES["files"]["tmp_name"][$key]."";
echo $_FILES["files"]["name"][$key]."";
}
?>
Would that do what you need to get done?
-k.
On 21 Nov 2005, at 14:14, Tony Di Croce wrote:
Does anyone know of any commercial or free implementations of this?
Is it
primarily a database problem or is their some way (computationally) to
compute the probable proximity of two zip codes?
All the suggested packages could be all you need,
Hi,
When I said I installed the latest available snapshot, I meant I
installed the latest available snap in the 4.4.x tree - so, the
version I installed was php4-STABLE-200511211545.tar.gz.
Kristina
On 11/21/05, Marco Kaiser <[EMAIL PROTECTED]> wrote:
> Hi Kristina,
>
> I think there is no versi
[snip]
hello,
I have what may seem like a small problem but its not obvious to me.
I have a script that I forked and that part works fine, it forks, tells me
the pid like I wanted, and keeps running. Well, the problem that was not
apparent to me until about 3 days ago when I was wondering why th
On 21 Nov 2005, at 15:43, Jochem Maas wrote:
using sprintf() is
such a simple case may be excessive BUT I was merely introducing
the OP to
something new (possibly) - anyone asking such 'simple' questions is
not at a stage that this kind of efficiency is an issue (i.e. give
them 'whats possibl
Hi Kristina,
> When I said I installed the latest available snapshot, I meant I
> installed the latest available snap in the 4.4.x tree - so, the
> version I installed was php4-STABLE-200511211545.tar.gz.
tha Zend API changed so your installed zend products doenst work with
cvs version of php. Di
On 21 Nov 2005, at 17:39, matt VanDeWalle wrote:
I have what may seem like a small problem but its not obvious to me.
I have a script that I forked and that part works fine, it forks,
tells me the pid like I wanted, and keeps running. Well, the
problem that was not apparent to me until abou
On 21 Nov 2005, at 17:47, Jay Blanchard wrote:
It would have been nice to see your command line. Add '&' i.e.
You don't need to do that - the forking script will start, spawn a
child process then exit, so adding & will do nothing. Having said
that, you could achieve something similar by no
On 11/21/05, Marco Kaiser <[EMAIL PROTECTED]> wrote:
> Hi Kristina,
>
> > When I said I installed the latest available snapshot, I meant I
> > installed the latest available snap in the 4.4.x tree - so, the
> > version I installed was php4-STABLE-200511211545.tar.gz.
>
> tha Zend API changed so you
Voip tech said the following on 11/20/2005 10:31 PM:
Hello,
I cannot get exec(), system() or passthru() to run an extenal program.
From the command line it runs perfectly:
I'm getting frustrated, Any help will be deeply appreciated
Henry
The answer is probably in your php.ini. Look into
ah ok thanks, am reading it now
On Mon, 21 Nov 2005, Marcus Bointon wrote:
On 21 Nov 2005, at 17:39, matt VanDeWalle wrote:
I have what may seem like a small problem but its not obvious to me.
I have a script that I forked and that part works fine, it forks, tells me
the pid like I wanted, a
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Here is an example of a layout template:
>
> -
>
>
>
>
>
>
>
>
>
>
>
>
I'm trying to set up a script that will post a picture file to a hosting
site. Normally, the site accepts uploads via a web form using a POST action.
How can I make this file transfer to the host so it'll think it's posted
by it's own web form? I just don't get how to set it up..
--
Anders N
On Mon, 2005-11-21 at 13:41, Dan Baker wrote:
> "Robert Cummings" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Here is an example of a layout template:
> >
> > -
> >
> >
> >
> >
> >
> >
> >
> >
Hi Anders,
Monday, November 21, 2005, 7:13:40 PM, you wrote:
> I'm trying to set up a script that will post a picture file to a
> hosting site. Normally, the site accepts uploads via a web form
> using a POST action. How can I make this file transfer to the host
> so it'll think it's posted by it
On Mon, 2005-11-21 at 10:31, Richard Heyes wrote:
> Robert Cummings wrote:
> > On Mon, 2005-11-21 at 10:02, Richard Heyes wrote:
> >
> >>Readability is in the eye of the beholder.
> >
> >
> > But efficiency isn't ;)
>
> Try measuring the difference between the various methods over a
> realisti
[snip]
I'm trying to set up a script that will post a picture file to a hosting
site. Normally, the site accepts uploads via a web form using a POST action.
How can I make this file transfer to the host so it'll think it's posted
by it's own web form? I just don't get how to set it up..
[/snip]
On Mon, 2005-11-21 at 10:43, Jochem Maas wrote:
> Richard Heyes wrote:
> > Robert Cummings wrote:
> >
> >> On Mon, 2005-11-21 at 10:02, Richard Heyes wrote:
> >>
> >>> Readability is in the eye of the beholder.
> >>
> >>
> >>
> >> But efficiency isn't ;)
>
> yes it is actually - everything is in
I came across this method of matching brackets with regex in .NET
http://puzzleware.net/blogs/archive/2005/08/13/22.aspx
but I am wondering if it is possible to do the same in PHP?
I've tried it a bit but I can't seem to get it to work properly. I'm
just wondering if I am doing something wron
Mike
> How about jBPM (http://www.jboss.org/products/jbpm)? I looked at it,
> briefly, awhile back. May implement it in the next release of my
> company software. Anyone have any experience with it?
There's a wide range of Java solutions:
http://www.manageability.org/blog/stuff/rule_engines/view
I'm not aware of any. I am kind of developing my own for my current
Materials System. We purchase aluminum and glass from multiple
suppliers. The costing of those materials can vary supplier to
supplier. I'm working on an interface that will basically let the
Material dept work with a Part Profile
Greetings,
I am trying to compile PHP 5.1RC6 with support for both ldap and the
oci8 extension (using the Oracle Instant Client). To get this working
under PHP4, I had to modify the Apache (1.3) environment like so:
LD_LIBRARY_PATH="/usr/lib:${ORACLE_HOME}"
LD_PRELOAD="libldap.so.2:libcln
I have fixed my prier problem of my script crashing down whenever i logged
out of the shell, I got a bright idea, (one of the few it seems i'm having
lately :p )
I found out that there is a "nohup" command ..i guess i knew there was but
i had forgotten that until today. I put this in a script n
Hello,
The following script returns 'LDAP bind failed...'.
";
$ldaprdn = "[EMAIL PROTECTED]";
$ldappass = "jsmithpass";
$ds=ldap_connect("ad.dept.some.edu");
if ($ds) {
echo "Binding ...";
$r=ldap_bind($ds, $ldaprdn, $ldappass);
if ($r) {
echo "LDAP bind successful...";
}
hey...
anybody here have a serious background in security, or with 'man in the
middle attacks'???
in particular, i'm trying to get my hands around ways of preventing a
server/browser app to be susceptible to a 'man in the middle attack'
serious pointers would be helpful. searching across google
Hi all.
Here's what's going on. I have a page which calls itself in a .
On this page, I include two classes from other file I've created. On
load, the page reads the class stuff just fine. If I submit the form
(call the page again), then the class doesn't like to show any results.
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, 2005-11-21 at 13:41, Dan Baker wrote:
> There are two ways for retrieving data. The first you have seen is the
> tag form, but obviously that's a problem when the data goes into a tag
> :) For this there is the
On Mon, 2005-11-21 at 18:17, Dan Baker wrote:
> "Robert Cummings" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On Mon, 2005-11-21 at 13:41, Dan Baker wrote:
> > There are two ways for retrieving data. The first you have seen is the
> > tag form, but obviously that's a problem
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, 2005-11-21 at 13:41, Dan Baker wrote:
>> I'm curious ... how do you generally handle forms and urls? What if the
>> programmer wants to add a link, something like:
>> View my info
>>
>> How is the data (op=Vie
On Mon, 2005-11-21 at 18:46, Dan Baker wrote:
> "Robert Cummings" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On Mon, 2005-11-21 at 13:41, Dan Baker wrote:
> >> I'm curious ... how do you generally handle forms and urls? What if the
> >> programmer wants to add a link, somet
I think you are doing it wrong, though reading other people's regex
easily is a skill I lack.
It is however very possible.
The php manual has a section on recursive regex where it explains how to
solve the bracket problem.
http://php.net/manual/en/reference.pcre.pattern.syntax.php#regexp.refer
Trying to compile APXS version of PHP5.05 and towards the end, when
it tries to compile the CLI version, it bombs with the following:
ext/ftp/ftp.lo(.text+0x76): In function `data_close':
/usr/local/src/apache/php-5.0.5/ext/ftp/ftp.c:1566: undefined reference
to `SSL_shutdown'
ext/ftp/ftp.
On Mon, Nov 21, 2005 at 09:41:40PM -0700, Ashley M. Kirchner wrote:
>
>Trying to compile APXS version of PHP5.05 and towards the end, when
> it tries to compile the CLI version, it bombs with the following:
>
> ext/ftp/ftp.lo(.text+0x76): In function `data_close':
> /usr/local/src/apache/php
Curt Zirzow wrote:
You're compile path looks awkward to me.
How so? /usr/local/src/apache is simply a folder where I have all
apache related sources dumped and compiled prior to installation. So
naturally PHP's source becomes /usr/local/src/apache/php-5.0.5
what does your ./configure
your questions are on point...
if you're going to really talk about doing transactions... it appears to me
that you really need to solve this. www.passmarksecurity.com claims to have
solved this.. although i'm not sure i agree with them.. for one, i can't
find a thorough independent analysis, for
76 matches
Mail list logo