On Tue, August 23, 2005 12:19 pm, Thomas wrote:
> I am going to take that chance now to ask if it is viable to create a
> standalone app with php and gtk+, fully realizing that this IS the php
> list
> ;-)
There is a MUCH lower-volume PHP-GTK list you should probably
subscribe to and ask on.
I th
On Tue, August 23, 2005 3:52 pm, George B wrote:
> You know on forums when you make a topic right away it makes like a
> new
> link to your topic. How do you do that in PHP?
$_POST[new_topic]";
}
?>
http://php.net/mysql_insert_id
is probably the piece of the puzzle you were missing.
--
Like M
On Tue, August 23, 2005 9:44 am, Rick Emery wrote:
> Quoting Rick Emery <[EMAIL PROTECTED]>:
>
>> Ugh, we're *never* going to make a decision. My boss just sent me
>> this email:
>
> I wrote an application, using PHP5, that displays a list and refreshes
> every 30 seconds (the data is constantly ch
Jasper Bryant-Greene wrote:
George B wrote:
Jasper Bryant-Greene wrote:
George B wrote:
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
If it is MySQL, use mysql_real_escape_string() [1]. If any other
databa
George B wrote:
Jasper Bryant-Greene wrote:
George B wrote:
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
If it is MySQL, use mysql_real_escape_string() [1]. If any other
database, have a look in the PHP manu
Jasper Bryant-Greene wrote:
George B wrote:
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
If it is MySQL, use mysql_real_escape_string() [1]. If any other
database, have a look in the PHP manual [2] for the re
George B wrote:
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
If it is MySQL, use mysql_real_escape_string() [1]. If any other
database, have a look in the PHP manual [2] for the relevant function,
or as a last
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, that last one went out without a comment. I think this is most
likely the cause. I haven't dug back into it yet to verify, but it
makes the most sense.
Thanks everyone...
Larry
On Tue, 2005-08-23 at 05:30, Ford, Mike wrote:
> -Original Message-
> From: Larry Brown
> To: php
> Se
On Tue, 2005-08-23 at 05:30, Ford, Mike wrote:
> -Original Message-
> From: Larry Brown
> To: php
> Sent: 23/08/05 02:28
> Subject: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade
>
> I had a foreach loop working on an array as such:
>
> $multiarray = array(array('person','person'),ar
Jasper Bryant-Greene wrote:
Am I missing something really obvious here?
This is an inherent problem with floating-point operations, especially
comparison, and is not unique to PHP. Often numbers will be off by
some miniscule amount, just enough to make them not equal.
What I would do in
You know on forums when you make a topic right away it makes like a new
link to your topic. How do you do that in PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That did the trick.
Thanks a million.
Brian
"Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Brian P. O'Donnell wrote:
> > >
> > $a = 252.73;
> > $b = 252.73;
> > $c = 0;
> >
> > if ($a == ($b + $c))
> > {
> > // do the first thing
> > }
> > elseif ($a > ($b
What other values are you trying? I tested it and it seems to work the way
it's supposed to.
Changing just $a, I get the expected > or < results. Changing $a and $b so
that $a always equals $b it always returns the first option.
Your test values for $a and $b that yield odd results would be h
Brian P. O'Donnell wrote:
($b + $c))
{
// do the second thing
}
elseif ($a < ($b + $c))
{
// do the third thing
}
?>
Each of the three variables is derived by some earlier calculation, but for
testing purposes I have made sure that they end up being $a = $b and $c = 0.
I have tested for three
[snip]
($b + $c))
{
// do the second thing
}
elseif ($a < ($b + $c))
{
// do the third thing
}
?>
Each of the three variables is derived by some earlier calculation, but
for
testing purposes I have made sure that they end up being $a = $b and $c
= 0.
I have tested for three different values (of
Hello
I have the following code:
($b + $c))
{
// do the second thing
}
elseif ($a < ($b + $c))
{
// do the third thing
}
?>
Each of the three variables is derived by some earlier calculation, but for
testing purposes I have made sure that they end up being $a = $b and $c = 0.
I have tested for
I misread the OP.
No. you can't get information on the hardware of a CLIENT's machine via PHP.
You may be able to do it through some JS or I'm pretty sure through some
ActiveX control (on Microsoft brosers of course).
We make an appliance that "phones home" for updates and such, and therefore
w
Here's one I wrote:
/**
* Checks the status of an address as being "U" or "D".
*
* @access public
* @return "U" or "D"
* @param$TargetRange the dotted quad address to check
* @param$DEBUG debugging output. default is false.
* @since3.0
*/
function CheckIP($Targ
You don´t need your linux or unix php app to be standalone, since
putting a #!/usr/bin/php at the start of your script, means that most
users won't know the difference.
For RPM/DPKG you simply add a php dependency.
On 8/23/05, Ing. Josué Aranda <[EMAIL PROTECTED]> wrote:
> mybe this can help...
This works on Linux/Unix boxen. On windows... You're on your own.
//generate the global array here so we can re-use it independant of output
format
$device['os_ver'] = exec("/bin/uname -a");
$temp = preg_split("/\s+/",exec("/sbin/ifconfig -a eth0 | /bin/grep
HWaddr"), -1, PREG_SPLIT_NO_EMPTY);
$
I withdraw my information in my earlier post.
I was in a cybercafe in a hurry - and didn't have time to consider
what was said, nor what I was saying myself.
What I said before has little or not merit.
You can make an experimental interface, and parse the html without the
other domain owners co
mybe this can help...
http://www.dwebpro.com/
with this app you can us a CD or DVD like a stand alone for
distributing your php script
:D
On 8/23/05, Thomas <[EMAIL PROTECTED]> wrote:
> Hi there,
>
>
>
> I am going to take that chance now to ask if it is viable to create a
> standalone app
> [snip]
> Can I use require with http?
>
> My domain: www.varupiraten.se
>
> Other domain: www.webshop2.se
>
> Does this kind of code work?
>
> Code for my domain:
> require(http://www.webshop2.se/externfunctions.php);
> $x = getValueFromProduct('Inno AX5000'); //This function
> retrieves pr
What I've done with it hasn't included any compiling or code obscuring, but
there are a number of PHP code protection schemes that may work with this. I
havn't kept up on recent developments, but I've seen the question ask a number
of times if you can compile or at least wrap a Winbinder/PHP pr
[snip]
Can I use require with http?
My domain: www.varupiraten.se
Other domain: www.webshop2.se
Does this kind of code work?
Code for my domain:
http://www.webshop2.se/externfunctions.php);
$x = getValueFromProduct('Inno AX5000'); //This function retrieves price
from webshop2.se
?
[/snip]
Hav
Gustav Wiberg wrote:
Hi!
Njae
I have a webshop and want to see a price from another webshop online
(directly).
Let's call my webshop - varupiraten.se
and the other webshop - inwarehouse.se
I want to be able to see what price inwarehouse.se has for a certain
product directly. (without no co
Hi!
Can I use require with http?
My domain: www.varupiraten.se
Other domain: www.webshop2.se
Does this kind of code work?
Code for my domain:
http://www.webshop2.se/externfunctions.php);
$x = getValueFromProduct('Inno AX5000'); //This function retrieves price
from webshop2.se
?
/G
@varupi
[snip]
I have a webshop and want to see a price from another webshop online
(directly).
Let's call my webshop - varupiraten.se
and the other webshop - inwarehouse.se
I want to be able to see what price inwarehouse.se has for a certain
product
directly. (without no copying). Of course I have to
Hi!
Njae
I have a webshop and want to see a price from another webshop online
(directly).
Let's call my webshop - varupiraten.se
and the other webshop - inwarehouse.se
I want to be able to see what price inwarehouse.se has for a certain product
directly. (without no copying). Of course I ha
This is pretty cool stuff! This is compiled code for Windows only so
no source is available? Therefore, making it so that people can't view
your source?
Damn... you said those words "cross platform".. But I'll still take
this opportunity to plug Winbinder again. If you're just working
wi
Gustav Wiberg wrote:
Is it possible in PHP to retrieve value from one domain to another than
my own?
Something like this:
Other domain: function getValueForMp3Player()
My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves
value from other domain
What exactly do you mean by
I'm not sure I understand but:
You define a function on one machine;
You want to use that function on another machine;
If I understand you correctly, then you should be able to just
cp function_server.php function_server.txt
,
and include it over http
and done
On 8/23/05, Gustav Wiberg <[
Damn... you said those words "cross platform".. But I'll still take this
opportunity to plug Winbinder again. If you're just working with a Windows
platform, Winbinder has it all!Fantastic interface, very self contained,
just a great PHP standalone/app/etc extension all around.
Eh.. chec
hi there!
Is it possible in PHP to retrieve value from one domain to another than my
own?
Something like this:
Other domain: function getValueForMp3Player()
My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves value
from other domain
/G
@varupiraten.se
--
PHP General
Vidyut Luther wrote:
and then:
trigger_error("log(x) for x <= 0 is undefined, you used: scale =
$scale", E_USER_ERROR);
?>
So, wouldn't this make $errno in the "myErrorHandler" be "log (x) "
rather than E_USER_ERROR ?
No, because you're calling trigger_error, not myErrorHandler.
The
[snip]
I am going to take that chance now to ask if it is viable to create a
standalone app with php and gtk+, fully realizing that this IS the php
list
;-)
[/snip]
Check out http://www.priadoblender.com it may do exactly what you want.
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Hi there,
I am going to take that chance now to ask if it is viable to create a
standalone app with php and gtk+, fully realizing that this IS the php list
;-)
I was thinking of php/gtk+ because I need that as a cross-platform
application. What I really would like is to have .rpm's and .exe's
Hello,
on 08/23/2005 02:13 PM Ing. Josué Aranda said the following:
I have a script that generate a XHTML report, but also i want to send
that report by email, the problem is the file size its up to 4Mb, its
too big to send by email (considering that some people still using
hotmail).. how i can
> We set the application up on a Windows 2000 Server with IIS (5, I
> think), and it would work fine for about a day. Then Padcom clients
> kept stopping. They'd request the page and, after a loong time,
> display a message that the request timed out.
Can they access other (non-php) pages
Benchmark it both ways and see.
I benched this with a 100 MiB text file (largest I could find at short
notice). Buffer used for fread() calls was 2 KiB as above.
Values are averaged over 100 runs (I would have liked to do more, but I don't
have time). All values are to 4 significant figures
Have you tried PHP 4.x? Give that a shot and see what effects that has
on the application.
We have used PHP with IIS and SQL Server like you said, I can say from
experience that PHP 5 had the same problems as the initial poster
described. The pages would time out and hang randomly. I put a
At 01:44 PM 8/23/2005, Rick Emery wrote:
Quoting Rick Emery <[EMAIL PROTECTED]>:
Ugh, we're *never* going to make a decision. My boss just sent me this email:
A *huge* "THANK YOU!" to everybody who replied; it was extremely helpful
and, after my meeting with my manager this morning, she seem
I have a script that generate a XHTML report, but also i want to send
that report by email, the problem is the file size its up to 4Mb, its
too big to send by email (considering that some people still using
hotmail).. how i can send it compressed by email? anyone knows a class
that can help me?
any
On 23 Aug 2005, at 14:05, Jay Paulson wrote:
I would say check out Dupral, Mambo, and XOOPS.
Drupal looks great, but whenever I've tried to get into it, nothing
seems to work properly. Xoops is capable (I've used it on a couple of
sites), but generally a complete mess internally. Both of t
Ugh, we're *never* going to make a decision. My boss just sent me
this email:
A *huge* "THANK YOU!" to everybody who replied; it was extremely
helpful and, after my meeting with my manager this morning, she seemed
to accept that the article was dated and had inaccurate information.
Thanks fo
Quoting Rick Emery <[EMAIL PROTECTED]>:
Ugh, we're *never* going to make a decision. My boss just sent me this email:
A *huge* "THANK YOU!" to everybody who replied; it was extremely
helpful and, after my meeting with my manager this morning, she seemed
to accept that the article was dated a
>>> we have a script to create a word-document via COM which, so far, run
>>> pretty stable under php 4.3.7
>>
>> are you using apache2 with php4?
>
> Yes !
Sorry - my mistake here : the problems are caused under PHP5. With PHP4 the
script runs fine, so right now we are using PHP4, but due to ot
On 8/23/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Jay Blanchard wrote:
> >
> > Also, sweet move with the array_reverse...
> >
> > $fileParts = array_reverse(explode('.', $theFile));
> > if("php" == $fileParts[0]){
> >
> > ...it prevents problems with funky file names containing more
Jay Blanchard wrote:
You may (or may not) remember me posting to the list a couple of weeks
ago asking about using REGEX to get queries out of PHP files for a
migration project. I had to let it go for several days, but started
working on it again yesterday, here is the code (no REGEX was used in
[snip]
> argv[] is always available
[/snip]
As an example you could something like this...
$requestedDatabase = $argv[1];
so that [EMAIL PROTECTED]:/usr/myApp/whatever php chaFinder.php CHA >
output.txt
will have $requestedDatabase == 'CHA'
[snip]
btw if my file names are funky I am too?
[/sni
>> we have a script to create a word-document via COM which, so far, run
>> pretty stable under php 4.3.7
>
> are you using apache2 with php4?
Yes !
> are you using the prefork version of apache2? (you should be!!)
No - not to my knowledge.
I couldn't really find out HOW to implement this prefo
I'm writing a error handler for my scripts, so I went to : http://
us3.php.net/manual/en/function.set-error-handler.php
I noticed something in the example 1 given there.
and then:
trigger_error("log(x) for x <= 0 is undefined, you used: scale =
$scale", E_USER_ERROR);
?>
So, wouldn't this
Jay Blanchard wrote:
[snip]
I figured as much - I was think of adding an optional param so that you
can optionally
add such an extra limit e,g:
cd /my/projects/stuff; php findqry.php --limit CHA > ./results.txt
[/snip]
argv[] is always available
indeed - I'll add something for that...
Also
[snip]
I figured as much - I was think of adding an optional param so that you
can optionally
add such an extra limit e,g:
cd /my/projects/stuff; php findqry.php --limit CHA > ./results.txt
[/snip]
argv[] is always available
Also, sweet move with the array_reverse...
$fileParts = array_reverse(
Jay Blanchard wrote:
[snip]
heh Jay, I have been playing with this ...
I rewrote your code abit (including removing the check for the string
'CHA'
- cos that was limiting my search too much ;-)
[/snip]
Cool, I'll have a look. I was using the 'CHA' because I was looking for
queries to the specifi
[snip]
heh Jay, I have been playing with this ...
I rewrote your code abit (including removing the check for the string
'CHA'
- cos that was limiting my search too much ;-)
[/snip]
Cool, I'll have a look. I was using the 'CHA' because I was looking for
queries to the specific database.
--
PHP Gen
Jay Blanchard wrote:
You may (or may not) remember me posting to the list a couple of weeks
I am a goldfish. hi my name is 10second Tom ;-)
ago asking about using REGEX to get queries out of PHP files for a
migration project. I had to let it go for several days, but started
working on it
[snip]
I am new as you can assume. Hence, I have no clue how to turn
>
> register_globals back "On"
>
[/snip]
Look in your php.ini file.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Richard,
I am new as you can assume. Hence, I have no clue how to turn
register_globals back "On"
Is there any other place I can read more about creating
Arrays? other than http://us2.php.net/manual/en/language.types.array.php
The page is discussion:
http://www.primary
Martin Staiger wrote:
Hello NG,
we have a script to create a word-document via COM which, so far, run pretty
stable under php 4.3.7
are you using apache2 with php4?
are you using the prefork version of apache2? (you should be!!)
Since we upgraded to php 5.0.3.3 the same script works only o
You may (or may not) remember me posting to the list a couple of weeks
ago asking about using REGEX to get queries out of PHP files for a
migration project. I had to let it go for several days, but started
working on it again yesterday, here is the code (no REGEX was used in
the making of this code
turck-mmcache?
t
Edward Vermillion wrote:
Larry Brown wrote:
I found that the only way to get the function to behave is to add the
key...
foreach($multiarray as $key=>$subArray)
Now it displays as it previously did where $subArray is concerned. Is
there something I'm missing here? Was I
..
As long as we are doing stats;
For an internal app our source code alone is 2MB zipped, using SQL
Server, over 30 databases, about 1000 stored procedures, all tied
together with PHP...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I switched from 4.3 to 4.4 on a server with a huge web application using
both foreach loops with and without the keys.. No problem whatsoever..
Evert
Larry Brown wrote:
I found that the only way to get the function to behave is to add the
key...
foreach($multiarray as $key=>$subArray)
Now i
Larry Brown wrote:
I found that the only way to get the function to behave is to add the
key...
foreach($multiarray as $key=>$subArray)
Now it displays as it previously did where $subArray is concerned. Is
there something I'm missing here? Was I the only person not using
"keys"?
[snip]
Jasper,
thanks for your answer,
Il giorno 23/ago/05, alle ore 2:38 PM, php-general-digest-
[EMAIL PROTECTED] ha scritto:
Da: Jasper Bryant-Greene <[EMAIL PROTECTED]>
Data: 23 agosto 2005 0:39:32 PM GMT+02:00
A: php-general@lists.php.net
Oggetto: Re: [PHP] Mac OS X file name encoding problem
Everyone has already told you about opensourcecms.org, which is a
really good site to test things out. However, about 6 months ago I had
to do research for the same kind of thing. As of now with the split of
the Mambo dev team from the parent company Miro I think I would go with
Dupral becaus
My company wants to relocate to the UK (London, specifically) from the
US
and I've been looking at various resources to try find out what my
current salary
would translate to. Most of the job listings I've seen are for junior
or not very
experienced developers. So I'm wondering if there are any
as of 5.1.1 instanceof will no longer call __autoload()
(which maybe implemented as a handler/function chain by then?)
Thank God/Angeline Jolie/My Cat/Other. :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Giulio wrote:
I have a problem with a script when it is runs on a Mac OS X environment.
[snip]
The problem appears when $filename contains special characters, like
accented chars, on Mac OS X the ftp_fput function returns me an error.
I thinked that the problem could depend on the filesyste
Hi all,
I have a problem with a script when it is runs on a Mac OS X
environment.
a part of this script simply takes an upoloaded temporary file and
writes it on the local system using ftp functions.
something like:
$filename = $TheNameToAssignToTheFile;
$ftps = ftp_connect($ftpaddress)
On 8/23/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> Robin Vickery wrote:
> > Both of these will fail to compile:
> > preg_match( '/\\7abc/', $myString);
> > preg_match( '/\7abc/', $myString);
> >
> > Both of these are fine:
> > preg_match( '/\\abc7/', $myString);
> > preg_match( '/\abc7/
Richard Lynch wrote:
On Tue, August 23, 2005 12:48 am, Jasper Bryant-Greene wrote:
Kim Steinhaug (php list) wrote:
I'm using this method, works fine with 50mb+ files :
if( $fd = fopen ($filepath, 'r')){
while(!feof($fd)) {
$buffer = fread($fd, 2048);
print $buffer;
-Original Message-
From: Larry Brown
To: php
Sent: 23/08/05 02:28
Subject: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade
I had a foreach loop working on an array as such:
$multiarray = array(array('person','person'),array('another','another'))
the array was put through
foreach($mu
On Mon, August 22, 2005 3:48 am, Erik Gyepes wrote:
> Zachary Kessin wrote:
>
>> I am about to start on a project that seems like it would be right
>> for
>> a CMS system. It will be about 80% rather boring stuff with about
>> 20%
>> custom database work. I have looked at XOOPS and a few others.
>>
Robin Vickery wrote:
Both of these will fail to compile:
preg_match( '/\\7abc/', $myString);
preg_match( '/\7abc/', $myString);
Both of these are fine:
preg_match( '/\\abc7/', $myString);
preg_match( '/\abc7/', $myString);
In fact they behave *exactly* as if you hadn't doubled them up. You've
On 8/23/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> The advantage that when I have to change the string to match the
> new/altered data, and that data has, oh, I dunno, something like ' or
> \ or 0, 1, 2, 3, ...9 in it, and then my Regex suddenly doesn't work
> because \abc7 won't work the same
On Tue, August 23, 2005 12:48 am, Jasper Bryant-Greene wrote:
> Kim Steinhaug (php list) wrote:
>> I'm using this method, works fine with 50mb+ files :
>>
>> if( $fd = fopen ($filepath, 'r')){
>> while(!feof($fd)) {
>> $buffer = fread($fd, 2048);
>> print $buffer;
>>
On Mon, August 22, 2005 10:39 pm, Dean Maunder wrote:
> I have a large string that I need to send to a script that creates an
> image.
> eg src='createimage.php?wp=321,43,23,12,43,12,342,54,765,87,3,23,etc etc
> etc
Woof.
I'm surprised it took 3000 characters to become a problem... :-)
You MAY
Hello NG,
we have a script to create a word-document via COM which, so far, run pretty
stable under php 4.3.7
Since we upgraded to php 5.0.3.3 the same script works only on the first
run!
On the following runs the same script causes a fatal error on the code
below:
Fatal error: Uncaught excep
On Mon, August 22, 2005 6:29 am, Jay Paulson wrote:
> I have a problem that I'm sure some of you have run into before,
> therefore I hope you all know of an easy solution. Some of my users
> are cutting and pasting text from Word into text fields that are being
> saved into a database then from th
On Mon, August 22, 2005 12:45 am, Andras Kende wrote:
> I have a some colorful pictures, Would like to add white text with
> black
> background around the white text...
>
> I can add the text fine but could figure out how to add black
> background..
>
>
> $textcolor = imagecolorallocate($destimg, 2
Kim Steinhaug (php list) wrote:
I'm using this method, works fine with 50mb+ files :
if( $fd = fopen ($filepath, 'r')){
while(!feof($fd)) {
$buffer = fread($fd, 2048);
print $buffer;
}
fclose ($fd);
exit;
}
Is there a reason why you assign the
> opencms.org or something like that.
It is http://www.opensourcecms.com/
Raz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You are referring to this page :
http://www.opensourcecms.com/
Regards,
Kim Steinhaug
- - - - - - - - - - - - -
http://www.easywebshop.no/
- Original Message -
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: "Erik Gyepes" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, August 23, 2005 9:28 AM
S
I'm using this method, works fine with 50mb+ files :
if( $fd = fopen ($filepath, 'r')){
while(!feof($fd)) {
$buffer = fread($fd, 2048);
print $buffer;
}
fclose ($fd);
exit;
}
Regards,
Kim Steinhaug
- - - - - - - - -
www.easycms.no
- Original
On Mon, August 22, 2005 8:13 am, Robin Vickery wrote:
> On 8/22/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> On Sat, August 20, 2005 5:00 am, John Nichel wrote:
>> > Personally, I have never used \\ in PCRE when looking for things
>> like
>> > spaces (\s), word boundraries (\b), etc. and it's al
88 matches
Mail list logo