You can't embed function calls in strings like this
$sString = "{addslashes($blah)},{addslashes($blah)}";
you have to go
$sString = addslashes($blah) . ',' . addslashes($blah);
Lang
John Taylor-Johnston wrote:
> Lars,
>
> Thanks. I am getting this error however:
>
> Parse error: parse error,
On Solaris 2.7 with Apache 1.3.27 and PHP-4.2.3, I configure PHP with
this command :
'./configure' \
'--with-config-file-path=/usr/local/apache/conf' \
'--with-gd=/usr/local' \
'--enable-gd-native-ttf' \
'--with-png-dir=/usr/local' \
'--with-jpeg-dir=/usr/loc
On Wed, 2003-06-11 at 21:00, John Taylor-Johnston wrote:
> Lars,
>
> Thanks. I am getting this error however:
>
> Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
>
> It does not like addslashes() because of the {}? What is a sensible work around? Or
> do I ev
> -Original Message-
> From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
> Sent: 11 June 2003 14:09
> session_register('user');
>$_SESSION['user'] = "ebusUser";
Just one other quick point here: if you use the $_SESSION array, you don't
need to -- and, in fact, should not -- use session_
Or the fact that various datatypes take up various storage needs
"Clint Tredway" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How about the need to add prices together, or store binary data, or using
a
> bit for true false...
>
> There are numerous reasons for datatypes in a d
Hi,
Excuse-me, I have 2 warnings : one with php_var_unserialize and an other
with
XtOffsetOf.
Here is the warning with XtOffsetOf
During 'make', I get this warning :
/bin/sh /produits/packages/php-4.2.3/libtool --silent --mode=compile
gcc -I. -I/produits/packages/php-4.2.3/sapi/apache -I/produits
"Jeff Harris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Jun 11, 2003, "Alex Earl" claimed that:
>
> |> Does anyone know what to do to make it saved as: mysoft-1.0-truc.zip
> |>
> |> And I would like to display a page telling "Thanks for download" or
> |> something...but if I
"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> what code can I put at the begining of a php page so that the result from
> the cache is never shown ?
>
>
The following code should eliminate the cache for every broswer out there.
--
PHP General Mailing List (
Hi guys,
I am writing a counter that checks where the hit comes from, and if it
comes from the same site, it will not count .
I have a question related to performance:
In the script (as yet) I have to open the txt file twice at this stage,
because I first need to read from it and then write to it
> -Original Message-
> From: Ryan M [mailto:[EMAIL PROTECTED]
> Sent: 11 June 2003 20:22
>
> Thanks for the advice... The link worked Now it is saying this:
>
> Notice: Undefined index: action in
>
> It only says this if there is no action...it goes away once I
> click the link
At 11:29 12-6-03, you wrote:
function ref($url)
{
$this->incr($pc,$fp,$nc);
$this->write($nc,$cfile);
}
function incr($pc,$fp,&$nc)
{
if($pc != "")
I have a question about automated email:
In my sendmail configuration i have:
Alias: Testit
Feeds to Program /usr/local/bin/php
/usr/local/apache/sites/xxx.com/tasks/automail/test.php
testit is set up to an address, so if i send to [EMAIL PROTECTED] the above is
indeed ran, my question is how in
> I've had a look around but no luck watsoever. If someone could give me a
> short answer on this one? Is it possible to make a php ntp client? If so
> give me your opinion on getting it done please?
do you mean to query a time server?
--
PHP General Mailing List (http://www.php.net/)
To unsub
On Thursday 12 June 2003 18:12, Brian McGarvie wrote:
> I have a question about automated email:
>
> In my sendmail configuration i have:
>
> Alias: Testit
> Feeds to Program /usr/local/bin/php
> /usr/local/apache/sites/xxx.com/tasks/automail/test.php
>
> testit is set up to an address, so if i sen
> Assuming that your sendmail alias was setup properly then the whole email
will
> be available in STDIN, see manual > Using PHP from the command line for
> details.
Cheers! Works a treat now to parse the bugger :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
> Assuming that your sendmail alias was setup properly then the whole email
will
> be available in STDIN, see manual > Using PHP from the command line for
> details.
Working kind of :)
Get one line from it
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
> Working kind of :)
>
> Get one line from it
Kinda... I get it to return one line...
The code:
Emails me:
Test Test...
Original Email:
>From [EMAIL PROTECTED] Thu Jun 12 11:41:39 2003
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
Dear All,
Hope someone could shed some light over. :)
I am looking for something like strip_tags ($str, "") but in
reverse operation.
This will strip all tags except tags, but I need to strip
these tags only () keeping the rest unchanged.
Any help / hint will be highly appreciated.
Regards,
yes.
I hope this isn't a really dumb question.
"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > I've had a look around but no luck watsoever. If someone could give me a
> > short answer on this one? Is it possible to make a php ntp client? If so
> > give me your op
Greetings all,
I got a headache doing this, i need to get vars inside an sql query. For example :
$query = "select * FROM `table` where id='$value' order by name";
preg_match_all("/^('\$(.*)')/si", $query,$matches);
any help plz ?
Thanks,
Hatem
> I am looking for something like strip_tags ($str, "") but in
> reverse operation.
> This will strip all tags except tags, but I need to strip
> these tags only () keeping the rest unchanged.
You'll be wanting regular expressions then :)
http://uk2.php.net/ereg_replace
just build up an exp
That doesn't work as the new string already is like "select * FROM `table`
where id='2' order by name" assuming $value was 2...
"Hatem Ben" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Greetings all,
I got a headache doing this, i need to get vars inside an sql query. For
example
At 13:54 12-6-03, you wrote:
I got a headache doing this, i need to get vars inside an sql query. For
example :
$query = "select * FROM `table` where id='$value' order by name";
preg_match_all("/^('\$(.*)')/si", $query,$matches);
That doesn't work as the new string already is like "select * FROM
> -Original Message-
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]
> Sent: 12 June 2003 11:42
>
> Kinda... I get it to return one line...
>
> The code:
>
> define('STDIN',fopen("php://stdin","r"));
> $str = fgets(STDIN);
> mail("[EMAIL PROTECTED]","Test","Test
> Test...\n\nOriginal
Oh, ok this is how i want to do it exactly :
query.php
parse.php
Thanks
"Chris Hayes" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> At 13:54 12-6-03, you wrote:
> >>I got a headache doing this, i need to get vars inside an sql query. For
> >
Sorry this is more correct :
-- starting query.php
select * FROM `table` where id='$value' order by name
-- ending query.php
"Hatem Ben" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Oh, ok this is how i want to do it exactly :
> query.php
> $query
i wrote a simple easy class,
please give me some advise and help my skills,
thank you^_^
(using 'DB/DataObject.php,Smarty...)
_sessionname = $sessionname;
$this -> name = $name;
$this -> login_time = time();
}
function &knock($name,$prefix = null)
{
if(empty(
You may also want to look into dbmail (dbmail.org), which is a mail
server that uses Postgres or Mysql as it's repository. I haven't played
with it yet, but I would think you would be able to query the database
like any other database you create.
On Wednesday, June 11, 2003, at 05:31 PM, Adrian
Obviously relatively new to php
I would like to know how to do a simple redirect from a php page.
For example in ASP I do response.redirect("thispage.com")
Want to do the same thing in php.
I have tried to go through the documentation, but can't seem to get focused on the
proper and si
[snip]
I would like to know how to do a simple redirect from a php page.
[/snip]
Look up 'header' on php.net
header("Location: wherever.php"); exit();
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Should be:
$results = preg_replace("@<(tag|tag2)(.*?)>.*?@sm","",$html);
Remember you need to find the matching tag, so use backreference.
Burhan Khalid wrote:
Hello dwalker,
Thursday, April 24, 2003, 11:50:16 PM, you wrote:
Firstly, don't ask for reading confirmation reciepts -- especially on
a
Its a ternary operator
look at
http://www.phpbuilder.com/board/showthread.php?threadid=10235547
http://www.phpbeginner.com/columns/maxim/ternary
pete
Adrian Greeman wrote:
I am confused by the shorthand "if" notation.
For example I just saw this PHP snippet on another forum
I think it is an if
hi all,
is it possible with php:
first to pass request to another URL and after that to get the html responce
as a string and put it into php $variable?
best,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Put a hidden field in the form and give it the same name as the forms
eg
I'm pretty sure the form name is not sent to the server - but i may be wrong
pete
Amanda McComb wrote:
If I have multiple forms on a page, and each form has it's own name, how
can I tell which form has submitted?
--
PHP
On Thursday 12 June 2003 21:53, Valentin wrote:
Please use a descriptive subject!
> is it possible with php:
> first to pass request to another URL and after that to get the html
> responce as a string and put it into php $variable?
Simplest: fopen()
For alternatives, search archives.
--
Jaso
I'm a bit of a neophyte with php, and I've read through lots of prior
posts and the php.net online docs, but some of this is still not
registering in my head. TIA for your patience.
I've got a script I include at the head of each of my scripts that
checks $_POST['username'] and $_POST['password
hi Jason,
In my site I use a payment system, but unfortunately, there is a "moment"
when the client must enter his card data into the page "owned" by the
company that makes transactions (sorry for this descriptive bad english).
The problem is that the design of this page is quite different then min
Hi,
I'll join the conversation, because I have a similar problem.
PHP "interpolates" variable values in strings if these are enclosed in
double quotes:
e.g.,
$string = "select * FROM `table` where id='$value' order by name";
PHP does not interpolate variables contained in strings delimi
[snip]
$string = "select * FROM `table` where id='$value' order by name";
[/snip]
I know it ain't pretty, but the coding style we have accepted is
this
$string = "select * FROM `table` where id = '" . $value . "' order by
name ";
or (we requite caps on reserved words)...
$string = "SE
Do you think the users will trust your site that much they will be
willing to give you their credit card information? How would they know
you won't keep this information?
Valentin wrote:
hi Jason,
In my site I use a payment system, but unfortunately, there is a "moment"
when the client must ente
Thanks Brent, now that's an interesting angle I'd not thought about :)
Thanks for this
Ade
> -Original Message-
> From: Brent Baisley [mailto:[EMAIL PROTECTED]
> Sent: 12 June 2003 13:30
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] piping email directly into PHP
header("location: mypage.php");
"Mark Roberts" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Obviously relatively new to php
I would like to know how to do a simple redirect from a php page.
For example in ASP I do response.redirect("thispage.com")
Want to do the same thing i
Ben,
heredocs seem to do just what you are asking.
http://www.onlamp.com/pub/a/php/2003/04/10/php_heredocs.html
If I can "include()" a file inside this construct, then it will
solve my problem too :-?
Monu
-Original Message-
From: Monu Ogbe
Sent: 12 June 2003 14:12
To: [EMAIL PROTE
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Do you think the users will trust your site that much they will be
> willing to give you their credit card information? How would they know
> you won't keep this information?
>
I'm going to make only cosmetic changes
Location header requires full uri (at least that's what is in the rfc):
header("Location: http://www.server.com/wherever.php";); exit();
Jay Blanchard wrote:
[snip]
I would like to know how to do a simple redirect from a php page.
[/snip]
Look up 'header' on php.net
header("Location: wherever.php"
There's got to be an easier way, is there?
for ($i=0; $i < count($the_array); $i++){
array_pop($the_array);
}
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ext 435
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
At 16:13 12-6-03, you wrote:
There's got to be an easier way, is there?
for ($i=0; $i < count($the_array); $i++){
array_pop($the_array);
}
$the_array=array(); ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Simply list *.c all files as arguments to gcc:
gcc one.c two.c three.c -shared -o my_ext.so
Ed wrote:
Howdy folks!
Is there a way to have multiple *.c source files and still end up with a single *.so while using gcc? How would that be reflected in the config.m4 file?
I searched for examples in
I agree with you Jay, but those cases are already done, and i got no problem
with RE there
Thanks anyway
Hatem
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Monu Ogbe" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 3:17 PM
Subject: RE: [PHP]
Erich,
Yes, it's possible to do the same.
What XML-RPC implementation to PHP are you using?
Evandro Sestrem
"Erich Kolb" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> What do I have to do in order to use the XML-RPC functionality on a
Windows
> based machine? It was fairly
it detracts from the experiance of user consistency if you are suddenly in a
nice site then presented with a crappy looking payment page ;)
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Do you think the users will trust your site that much they will be
> willing t
I'm asking again the same question, coz i guess my question wasn't clear.
i just need to retreive vars inside query.txt, my regular expression seems to be
correct for me, but i don't find why it doesn't wrk
-- Starting query.txt
select * FROM `table` where id='$value' order by name
-- E
> > Looks still broken to me :)
>
> yup, but I don't get the problem, everything seems fine on my box.. maybe
> a problem with vim comments ? can you commit the _right_ WS fix ?
>
> thanks in advance :)
TABS are EVIL! :)
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To un
preg_match_all("/^('\$(.*)')/si", $fcontents,$matches);
^^
you don't allow any character between start of the string and single quote.
preg_match_all("/^.*('\$(.*)')/si", $fcontents,$matches);
Hatem Ben wrote:
I'm asking again the same question, coz i guess my question wasn't clear
Right then.
Here's what I have done, and it works:
===Contents of query.txt===
===End Contents of query.txt===
Then:
===Contents of parse.php===
===End Contents of parse.php===
Now, whereas this works, I am still looking for a way to
store and interpolate variables contained in "q
On Thu, 12 Jun 2003 10:13:10 -0400, James E Hicks III wrote:
>There's got to be an easier way, is there?
>
>for ($i=0; $i < count($the_array); $i++){
> array_pop($the_array);
>}
Maybe this:
unset( $the_array );
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
It's not working also
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Hatem Ben" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 5:23 PM
Subject: Re: [PHP] Vars inside an sql query [Regular expression question] -
Again
> preg_match_all("/^(
Or perhaps,
$the_array = array();
Monu
-Original Message-
From: Wendell Brown [mailto:[EMAIL PROTECTED]
Sent: 12 June 2003 16:31
To: James E Hicks III; [EMAIL PROTECTED]
Subject: Re: [PHP] Easier way to delete all entries in an array?
On Thu, 12 Jun 2003 10:13:10 -0400, James E Hicks I
Won't this topic just die? :)
register_globals is not insecure, users are insecure. Yes, you
can write insecure code with it on or off, and secure code with
it on or off. By users I mean people who write code, and people
who use it (the evil users are the ones that use the website,
and pass alo
The following has solved my problem. Thanks to all who helped.
$the_array=array();
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Easier way to delete all entries in an array?
At 16:13 12-6-0
Well, it's finally working, but still very confusing ... thanks all
Regards,
Hatem
- Original Message -
From: "Hatem Ben" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Marek Kilimajer" <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 4:35 PM
Subject: Re: [PHP] Vars inside an sql que
ppl, you're missing the point. you keep re-stating his problem. he knows
it's not good to make the 3rd party gateway so obvious. he's looking for a
way to make it transparent, so it looks like it's actually part of his site.
i think there should be a way to do it. maybe use the fsock stuff t
If I write a code like this,
$room_type=array();
$room_type[0][0]=4;
echo "value in array is ".$room_type[0][0];
yet I dont get any results out, what did i do wrong?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Now I noticed you did not escape backslash that was supposed to escape
the dolar sign.
preg_match_all("/^.*('\\\$(.*)')/si", $fcontents,$matches);
^ ^
Hatem Ben wrote:
Well, it's finally working, but still very confusing ... thanks all
$fcontents = join('' , file('query.t
Your code works fine here (Apache 1.3.27/PHP 4.3.2)
However you can try
$room_type=array();
$room_type[0]=Array();
$room_type[0][0]=4;
echo "value in array is ".$room_type[0][0];
HTH
R'twick
"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If I write a code like t
On Thu, 12 Jun 2003, Diana Castillo wrote:
> If I write a code like this,
> $room_type=array();
> $room_type[0][0]=4;
> echo "value in array is ".$room_type[0][0];
> yet I dont get any results out, what did i do wrong?
Nothing wrong with this code, it will work. Your
error must be somewhere else
Nothing as far as I can tell. It works fine for me.
Diana Castillo wrote:
If I write a code like this,
$room_type=array();
$room_type[0][0]=4;
echo "value in array is ".$room_type[0][0];
yet I dont get any results out, what did i do wrong?
--
The above message is encrypted with double rot13
you ´re right, I had used the same variable name as something else in
between ! thanks.
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Diana Castillo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 5:58 PM
Subject: Re: [PHP] array
> Nothing
At 22:31 11-06-2003, Jennifer Goodie wrote:
>// pull fields from form query
>$to = "[EMAIL PROTECTED]";
>$name = $HTTP_POST_VARS['name'];
>$address = $HTTP_POST_VARS['address'];
>$listname = $HTTP_POST_VARS['listname'];
>$action = strtoupper($HTTP_POST_VARS['action']);
>
>
Hey
I'm confused!
Do I use move_uploaded_file() or copy() and what is the first parameter of
both in the following case:
form portion of upload.htm
--
Upload.htm asks for the image to be uploaded and passes of to
confirmation.php which allows the u
It's not future when I send them ... my clock's within the 15 second limit
my NTP sync allows... but maybe the time difference causes ezmlm to do some
dancing when sending it out ?? I know listserv based lists can get confused
about the time differences...
but thanks anyway ;-)
Rene
At 22:50
Don't forget uploaded files are removed after confirmation.php finishes.
You need to move them to a temporary directory.
Artoo wrote:
Hey
I'm confused!
Do I use move_uploaded_file() or copy() and what is the first parameter of
both in the following case:
form portion of upload.htm
-
Lars, Much thanks. Life saving :)
Ignatius, I like your idea. Thanks to you too.
John
> if (isset($var[$key]['Option']))
> {
> // Flag that we got one this time round.
> $found = true;
> // Get the translated name from $var.
> $recor
- Original Message -
From: "Artoo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 10:16 AM
Subject: [PHP] uploading files after passing vars between forms
> Hey
>
> I'm confused!
>
> Do I use move_uploaded_file() or copy() and what is the first parameter of
> b
I didn't know that Thanks for the info.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Don't forget uploaded files are removed after confirmation.php finishes.
> You need to move them to a temporary directory.
>
> Artoo wrote:
> > Hey
> >
> > I'm confused!
> >
>
You can try using the cURL package with PHP. I use it with a system call.
$curl_path = /usr/bin/curl; # or full path of curl
$post = 'amount=3.40&merchant_id=2351235'; #POST key value pairs with &,
these variables will be POSTed to site
$command = "$curl_path -d \"$post\" $gateway_url";
exec($
I totally agree with your first sentence *grin*.
Anyways, I won`t be able to use your class because my
server is kind of "locked" in their network, meaning I
don`t have the possibility to connect outside, only to
their servers (NT servers). And as Exchange servers
don`t use SMTP (meaning the whole
--- Diana <[EMAIL PROTECTED]> wrote:
> I totally agree with your first sentence *grin*.
> Anyways, I won`t be able to use your class because my
> server is kind of "locked" in their network, meaning I
> don`t have the possibility to connect outside, only to
> their servers (NT servers). And as Exc
> Felipe Desiderati wrote:
> > try this:
> >
> > if (ereg("^[0-9]+$", $_POST["var_int"))
> > echo "is int";
>
> That's not the best regexp. It doesn' take into account negative
> integers and isn't there a [[:numeric:]] or something like regexp that
> would work better.
>
> I'm looking for the
Thanks, helps a lot!!
[]´s Felipe
> "Felipe Desiderati" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >I need a simple function that takes a string and formats
> > with a generic mask. Like this example above:
> >
> >$string1 = "12345678"
> >$string2 = "11062003"
> >
> >echo for
Hello everyone... I was wondering why the w32api functions were removed? And
will they come back? Else, will the 4.2.3 version work with 4.3.2? I really
want those functions for educational purposes you see...
Thanks in advance // DvDmanDT
--
PHP General Mailing List (http://www.php.net/)
To u
Hi,
my company set their server up not to talk SMTP
(disabled all --> that guy told me), and my tries to
connect or talk to any of their Exchange servers
failed :( so he must be true. Got onto their NT
servers though ;)
All the company uses Outlook & Exchange, & they use
mapi to talk to each other.
> Sorry, I don´t know that you needed an effective snipet. And you are
> right,
> I only writed for positive integers. Try something like apply 2 type cast
> simunltaneous.
>
> if ( (string) ((int) $_POST["var_int"]) == $_POST["var_int"])
> echo "is int";
>
Why not just use the is_int() func
Removed?
$PHPDIR/ext/w32api still seems to exist in the 4.3.2 I just installed.
Did you compile your own, or download a prebuilt binary?
---
Mark Roedel | "Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to
Prebuilt.. Compiling myself is to complicated... But check the manual...
4.2.0-4.2.3 is the only versions suporting it it says...
"Mark Roedel" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Removed?
$PHPDIR/ext/w32api still seems to exist in the 4.3.2 I just installed.
Did you co
>
> > Sorry, I don´t know that you needed an effective snipet. And you are
> > right,
> > I only writed for positive integers. Try something like apply 2 type
cast
> > simunltaneous.
> >
> > if ( (string) ((int) $_POST["var_int"]) == $_POST["var_int"])
> > echo "is int";
> >
>
>
> Why not just
>>
>> > Sorry, I don´t know that you needed an effective snipet. And you are
>> > right,
>> > I only writed for positive integers. Try something like apply 2 type
> cast
>> > simunltaneous.
>> >
>> > if ( (string) ((int) $_POST["var_int"]) == $_POST["var_int"])
>> > echo "is int";
>> >
>>
>>
>
To be honest, I haven't really understood what three of them does... Is it
the same value without type casting?
"Jean-Christian Imbeault" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Dvdmandt wrote:
> > It's not that killing... :p
> > preg_match("#^-?[0-9]+$#",$_POST["var_int"])
Shouldn't the following work - or rather why doesn't it :
ignore_user_abort(0);
for( $i=100; $i; $i-- )
{
if ( connection_status() ) exit(0);
print " blurp."; flush();
sleep(1);
}
print "Done.";
This is php
Just wanted to download sources... But that's kinda impossible... 404 on
every single mirror, both bz and gz...
Hmm... I guess I'll go for snaps then... :p Someone, please fix this...
"Dvdmandt" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Prebuilt.. Compiling myself is to comp
On Friday 13 June 2003 03:49, DvDmanDT wrote:
> To be honest, I haven't really understood what three of them does... Is it
> the same value without type casting?
It takes into account the variable type as well:
(1 == '1') // true
(1 === '1') // false
--
Jason Wong -> Gremlins Associates ->
Jumping in a little late here, but what about is_numeric()?
Haven't tried it, but the php manual for is_int says:
Note: To test if a variable is a number or a numeric string (such as
form input, which is always a string), you must use is_numeric().
On Thursday, June 12, 2003, at 03:31 PM, CPT Jo
> Jumping in a little late here, but what about is_numeric()?
> Haven't tried it, but the php manual for is_int says:
> Note: To test if a variable is a number or a numeric string (such as
> form input, which is always a string), you must use is_numeric().
>
The problem with is_numeric() is that
I have error reporting set to E_ALL, but no matter what I do, no errors
display. Is there somewhere else in the .ini that I have to set something?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I have error reporting set to E_ALL, but no matter what I do, no errors
> display. Is there somewhere else in the .ini that I have to set
> something?
>
I believe there is a print_errors or show_errors directive in the php.ini
file. Check on php.net for sure.
Alex
--
PHP General Mailing List
Belay this question. Found it.
display_errors = On
John Nichel wrote:
I have error reporting set to E_ALL, but no matter what I do, no errors
display. Is there somewhere else in the .ini that I have to set something?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Alex Earl wrote:
I have error reporting set to E_ALL, but no matter what I do, no errors
display. Is there somewhere else in the .ini that I have to set
something?
I believe there is a print_errors or show_errors directive in the php.ini
file. Check on php.net for sure.
Alex
Thanks guys.
--
PH
On PHPBuilder.com, they have functions listed for Vmailmgr in their
manual, whereas on PHP.net, no such functions exist. Do these functions
exist but not documented on PHP.net?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Jun 12, 2003, "-{ Rene Brehmer }-" claimed that:
|>You have an extra \r\n. There is one contained in the variable $from so the
|>line $headers .= "From: ".$from."\r\n"; is putting \r\n\r\n which signifies
|>the end of the headers and the begining of the message body.
|
|Stupid me ... so simple
On Thu, 12 Jun 2003, John Nichel wrote:
> On PHPBuilder.com, they have functions listed for Vmailmgr in their
> manual, whereas on PHP.net, no such functions exist. Do these functions
> exist but not documented on PHP.net?
The manual over at phpbuilder is useless, and very old. Do
not use tha
1 - 100 of 131 matches
Mail list logo