> I noticed something I haven't before: I'm generating a RPM for php-4.0.6
> which is what I'm installing, but using the .spec file from the 4.0.4
> which comes with RedHat. Well, in the configure it had
> --with-regex=system. I removed this option, recompiled, and the regex'es
> seem to be workin
I just can not seem to figure this out.
If i have a pattern 'arc' and I want to search the string:
"an arc is an archer, but what about marc and darcy?"
How can I find out how many occurances of arc is within that string? I know
I can do an explode and then compare it, but when you have huge am
I have a dir, full with bounch of pictures.
I need to find out the size of pictures, from another server.
I can't ftp or anything like this, so I need to open those pics, and
find out the size.
The problem is that is too slow for a lot of pics but I woder...
I can't find out the size without downl
Kurth Bemis wrote:
> i'm looking for a php function to add 2 decimal place sto a number. if the
> number already have one decimal place then one more zero should be added to
> make it two decimal placesanyone know of a quick way to do this?
printf("%.2f",$var);
--
PHP Developer, home: http
Try one of the following:
exec() php.net/exec
system() php.net/system
Maxim Maletsky
PHPBeginner.com
-Original Message-
From: Anthony [mailto:[EMAIL PROTECTED]]
Sent: mercoledi 26 settembre 2001 20.05
To: [EMAIL PROTECTED]
Subject: [PHP] Running Programs...
the sql RAND() function was mentioned, use it with ORDER BY
like this :
SELECT foo,bar FROM tablename ORDER BY RAND()
this use of RAND() requires at least version 3.23 you can
use LIMIT too :
SELECT foo,bar FROM tablename ORDER BY RAND() LIMIT 10
your result will be random, loop throug
Hi Lawrence,
Thanks for your reply.
I should clarify that I want to control where I output the result.
Place 1 - show details for record 3 //I specifically want record 3
details here
Place 2 - show details for record 1 //I specifically want record 1
details here
Place 5 - show details for recor
Im trying to use PHP to execute a program, called J-Express, and its run
through the command shell through ./J-Express.
What do I use in PHP so that this program will be automatically opened
through my website.
I have tried a whole variety of things, but cant seem to find anything that
actua
Return into an array, then loop through the array or shuffle it (easier)?.
Note if you have nulls in DB, you will have to do something different.
n'est pas?
e.g. (untested)
mysql_fetch_array
-Original Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
Sent: S
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Matthew Delmarter) wrote:
> Let's say I "select * from table" (using mysql_fetch_object) and get 5
> results. I want to display the 5 results in different / random places
> on the page.
>
> Place 1 - show details for record 3
> Place 2 - show d
How do I return a specific record from a db outside of the query?
Let's say I "select * from table" (using mysql_fetch_object) and get 5
results. I want to display the 5 results in different / random places
on the page.
Place 1 - show details for record 3
Place 2 - show details for record 1
Plac
On Tue, 25 Sep 2001 17:46, Bård Tommy Nilsen wrote:
> Can you write me an short example ??
>
>
> Bård Tommy Nilsen
[About passing arguments to functions and global scoping]
Declaring $id global:
function doit() {
global $id;
echo $id;
}
$id = 1;
doit();
output is 1
Passing $id as parameter:
function array_search ($needle, $haystack, $strict = FALSE)
foreach (array_keys($haystack) as $key)
{
if ($strict) {
if ($haystack[$key] === $needle) return $key;
}
else {
if ($haystack[$key] == $needle) return $key;
}
}
return FALSE;
}
"Ewunia" <[EMAIL PROTECTED]> wrote in message
mixed array_search (mixed needle, array haystack, bool strict)
Searches haystack for needle and returns the key if it is found in the
array, FALSE otherwise. If the third parameter strict is set to TRUE then
the array_search() will also check the types of the needle in the haystack.
function a
Augusto Cesar wrote
> I just instaled a Linux, but php is already working
> but without mysql.
> What should I do? How can I rebuild again?
I can't understand u'r question, May be u are asking
how to build php with mysql support,
First install mysql
get php4.x src,
../configure --wit
Hello,
I need some help with checkboxes and multiple arrays,
Here is the peace of code I am working with, and it gives me a list of
products.
This is the while statement which grabs information from the database:
$tplv .= "";
$P.="$P";
$tplv .= "". $actual."";
$tplv .= "". $actual."";
$tplv .=
array mysql_fetch_row (resource result)
MySql_fetch_array returns an array that corresponds to the fetched row, or
FALSE if there are no more rows. So put MySql_fetch_array in FOR loop. Look
like this:
for ($count = 1; $row = mysql_fetch_row ($query_result_handle); ++$count)
{
...
}
...the
I'm having a problem with file permissions within my PHP document when
running on an Apache web server.
When accessing a perl script or an executable from the cgi-bin directory the
web server runs the script as the correct user and group id. However then a
PHP document is accessed within the sam
Check out the following :
Browser Detection and Appropriate CSS Generation:
-
http://www.phpbuilder.com/columns/tim2821.php3
phpSniff:
-
"Adam Plocher" <[EMAIL PROTECTED]> wrote:
> Is there anyway I could make a PHP script run as the user that owns the
> script?
Yes. Run it in CGI standalone mode. That's the default method for
installing PHP, though it's probably not how yours is intalled. There was a
thread a few hours ago whi
what do you mean "cheat"??? I want the best solution possible...
I don't want a bomb in my hands that will work for 100 orders but will
crash and make the printer crazy with 10.000 orders...
If I converted the html doc to PDF would it be as perfect as if I produced
a PDF directly from PHP dinam
thanks a lot
"Brad Hubbard" <[EMAIL PROTECTED]> wrote in message
01092520521106.01344@badnote">news:01092520521106.01344@badnote...
> On Tue, 25 Sep 2001 13:09, mydata wrote:
> > Hi,I meet a problem when I am developing.
> >
> > I am developing php base on other programer's php code .
> > I must m
Hi.
I just instaled a Linux, but php is already working
but without mysql.
What should I do? How can I rebuild again?
regards,
Augusto
___
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo s
print "$HTTP_USER_AGENT";
will print the browser the person is using.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "wm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 5:54 PM
Subject: [PHP] bro
hello. you can use the $HTTP_USER_AGENT variable
for that. for example:
$spacerheight = 2; // default
if (strstr($HTTP_USER_AGENT, "Mac")) {
$spacerheight += 4;
}
hope that helps.
--- wm <[EMAIL PROTECTED]> wrote:
> hi all,
>
> anybody know the function for browser detection?
>
> wh
unfortunatly ZendLaunchPad installed php-4.0.4pl1 with Zend Optimizer 1.0.0
built in static, unless I can figure out how to get LaunchPad working with
4.0.6, will have to scrap it and go back to manually setting it all up.
Thanks,
Joseph
-Original Message-
From: John Lim [mailto:[EMAIL
On Wed, 26 Sep 2001 07:15, bill wrote:
> And so sends the resultant e-mail. Can I make it output nothing when
> run as a cron job?
#!/usr/local/bin/php -q
php -h for your future illumination :-)
Happy trails,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Aust
DB.php is part of PEAR
check out
php.net/PEAR
http://vulcanonet.com/soft/index.php?pack=pear_tut
on 9/25/01 12:40 PM, Matthew Walker at [EMAIL PROTECTED] wrote:
> I've searched the whole PHP website for any reference to this lib that
> comes standard with my distro of PHP4. No luck.
>
> Can
On Tuesday 25 September 2001 20:40, Matthew Walker wrote:
> I've searched the whole PHP website for any reference to this lib that
> comes standard with my distro of PHP4. No luck.
>
> Can someone provide me with an address I can go to, to read about DB.php
> and it's modules? (Specifically, the D
I plugged your query in and it didn't result in an error - however, it came
up with no results even though there should be.
This one should have come up but didn't:
INSERT INTO logged_in VALUES ( '5', 'b406e68a7cde49534a14f5fd8848006e',
'September 24, 2001, 3:27 pm', '');
-- the fields correspond
Actually this is a feature of Python. It is VERY useful and I would be
ecstatic if it turned up in PHP.
Regs
Brian White
At 11:36 25/09/2001 +0300, Andrey Hristov wrote:
> After some days spent in a hospital reading "Programming Perl" and
> "Oracle Web Applications" I found that a language co
On Tuesday 25 September 2001 19:38, Evan Nemerson wrote:
> Yeah, but what if they don't JUST want to print it...
>
> /*untested*/
> $i=524;
> $n=5-strlen($i);
> $outnum="";
> for($x=1;$x<=$n;$x++){
> $outnum.="0";
> };
> $outnum.=$i;
$outnum = sprintf('%05d' , 524);
--
Meir Kriheli
> On T
Put a slash in front of it:
don't => don\'t
-jack
-Original Message-
From: Andrew Austin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 7:08 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] speechmarks
What is the method for mySQL to surround single speechmarks as in
(don't) so
select * from logged_in where date_add(time_in,interval 1 hour) <= now()
-jack
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 6:08 PM
To: Sheridan Saint-Michel; [EMAIL PROTECTED]
Subject: RE: [PHP] select based on time/date
I tried b
What is the method for mySQL to surround single speechmarks as in (don't) so it will
be accepted in an SQL statement.
thanks in advance
Andrew
On Tuesday 25 September 2001 18:48, Jason Bell wrote:
> What if I want to pad a number with zeros in the other direction? I.E:
>
>
> 524 becomes 00524
>
printf('%05d',$the_number);
Prints the number padded to 5 chars with 0.
I suggest you read the manual about printf() and sprintf() functions
hi all,
anybody know the function for browser detection?
what i want to do is set a variable $spacerheight to a value dependent
upon whether the user is on a mac or a pc.
then i can say height= in the html.
i tried using javascript a few diff ways with this and it didn't work.
so, if anybody
See :
http://www.php.net/manual/en/function.get-html-translation-table.php
An example exists in there that does this.
Regards,
Philip Olson
On Tue, 25 Sep 2001, Jay Paulson wrote:
> hello-
>
> Is there a built in function that will reverse what htmlspecialchars() does
> to text?
> For ex
hello-
Is there a built in function that will reverse what htmlspecialchars() does
to text?
For example:
$text = " here\" and \' there";
$text = htmlspecialchars($text);
//now all the special codes are in the $text var for the html and now I want
to get
//back to the orignal string of " here\"
I tried basically what you have but I got an error:
$sql="select * from logged_in where time_in + interval 1 hour <= now()";
$result = mysql_query($sql);
If it will help, here's the table structure -- looks like my structure is
bit different from what I orignally posted:
CREATE TABLE logged_in
ImageColorAt() causes my php to crashI want to capture the color of a
pixel...
- James "ReDucTor" Mitchell
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-
- Original Message -
From: "Jason Dulberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 2:35 PM
Subject: RE: [PHP] select based on time/date
> I had a look at the DATE_FORMAT info on the mysql doc page and its a bit
> easier to unders
How can I have a script output nothing?
I have a script that could be called as an html page or as a cgi script
in a cron job.
I put
ob_start();
at the beginning, and at the end put:
if ($argv[1]) {
// accessed as cgi via cron
ob_end_clean();
} else {
// normal access
ob_end_flush();
Edney Marcel Imm wrote:
>HI.
>
>Anyone have a chat with php?
>
>tks
>
ME: Hello PHP
PHP: Hello
M: How are you?
P: Tell me more about you.
M: I'm just a guy living in Michigan
P: Are you sure?
M: Yes
P: How does that make you feel?
M: I dunno...
Sorry - I couldn't resist. Visions of old ELIZA
Try This...
for($i=1; $i<=35; $i++)
{
$sVarName = "link$i";
if(empty($$sVarName))
{
//Do Something
}
else
{
//Do Something Else using $$sVarName...
}
}
-Jason Garber
deltacron.com
At 01:42 PM 9/25/2001 -0400, Jordan Elver wrote:
>Hi,
>I'm feeling a
Hi
How I can connect to syBase?
Tks
HiI am new to Linux and PHP.
I've tried sending this to php-install, but it
didn't go through.
I've attached the debug.log which was created
while I was installing PHPonto my 400MHz Pentium PC, running Linux (and DOS
on another partition) witha MySQL database and an Apache web
server.Please
your server has to open a connection to a remote host to see if there are
messages ? like email ? if this is so then use cron once every so often to
check if there are new messages. if the remote host makes a connection to
your server the use tcp_wrappers to call your php script.
the second scrip
Hi,
Is here anyway to make a variable like $var not the same than
$HTTP_SESSION_VARS[var], when register_globals=1?. (where $var is in the
script scope).
I read in a changelog that this is relatively recent (make $var the same
than $HTTP_SESSION_VARS[var]).
Thank you.
Regards,
Rodolfo.
--
P
there are tutorials all over the inet.
--
Chris Lee
[EMAIL PROTECTED]
"Mark Lo" <[EMAIL PROTECTED]> wrote in message
000501c145d9$c5f56ca0$caccfea9@mark">news:000501c145d9$c5f56ca0$caccfea9@mark...
> Hi,
>
> I would like to know how to write a web page counter in PHP or
> Javasc
On Thu, 20 Sep 2001, * R&zE: wrote:
> > This sometimes work, but sometimes it doesn't randomly, even with the same
> > (apache-1.3.20, rh-7.1) and it's the same. Any help is appreciated. Thank
> Ehhh... works fine here! Dunno what's wrong. Don't you do anything
> almost a complete year using the l
you installed sybase after you installed php ? yup you need to re-install,
how would php know about something that was never on the system when you
compiled php ? if you installed sybase then php and php doesnt see it, well,
php does that, its anoying.
configure --with-sybase=/usr/local/sybase
c
If the user submits the page and that date is wrong then dont save the data,
check the data serverside. if you want the date checked before the client
presses submit, your looking at doing somehting client side, javascript. php
is server side only, just check the data to see if it is valid at the
'/images/image1.png' is '/images/image1.png'
'images/image1.png' is '/images/image1.png'
you are using the first, unless your something wierd on your first box, like
chroot, or safe_mode, or something else Ive never used, I dont know why the
first server is acting the way it is.
--
Chris Lee
Thanks for all reply! I just realized that this is just a simple issue
of a sql query.
Alex
- Original Message -
From: "Alex Shi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 3:03 PM
Subject: [PHP] How to obtain all the fields' names of a MySQL table?
When I run the code below it writes the image to the /images
directory on a Solaris machine running iPlanet and php4.04pl1. When I run
the exactly same code on a Solaris machine running iPlanet and php4.08 it
tries to write the file to "/images/image1.png". Why would one write
to the webroot and
How about this...
$db = "name_of_database";
$query = "DESCRIBE table_name";
$query = mysql_db_query($db,$query);
while ($row = mysql_fetch_row($query))
{
echo "$row[0]\n";
}
-Original Message-
From: Alex Shi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 12:03 PM
Depending on what exactly you are doing you should probably use
http://www.php.net/manual/en/function.mysql-list-fields.php
or
http://www.php.net/manual/en/function.mysql-fetch-field.php
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com
- Original Message ---
I had a look at the DATE_FORMAT info on the mysql doc page and its a bit
easier to understand than the CONCATS.
Would I want to use the CURTIME() function since I would want to select
sessions based on the hour? How would I go about combining CURTIME with the
rest of my query?
Theoretically, her
Why not to look into source code of PHPLIB? The class db_mysql has a
function called metadata (I think) - it does exactly that and much more.
You can copy the function only or use the class for all your db
manipulations if you wish.
Maxim Maletsky
PHPBeginner.com
-Original Message-
Hi,
I wanto know how can obtain all of the fields' names of a
MySQL table in a php script. Anyone have an idea about
this please help. Thanks!
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
T
Hi Im finishing a MSC thesis to get a recruitment site working from some
sample code from devshed called 'the perfect job' I have the source code yet
need a hand. I'm in Watford Herts my tel is 079 6750 1961 cheers,
Adrian
PS Im using PhP triad on Win 98 from home
Yes, I'll still use MySQL. I want this:
Use a XML file to "transfer" data (SMS data), What is
better to do:
1) Create manually a XML file?
2) Or I can have a .XML "model" file, that I just
"add" some data.
regards,
Augusto
--- Andrew Hill <[EMAIL PROTECTED]> escreveu: >
Augusto,
>
> Regar
Hi,
I have a Apache/PHP 4.0.6 Server running with safe_mode restrictions, but i got the
following error when i run one script:
Warning: SAFE MODE Restriction in effect. The script whose uid is 1013 is not allowed
to access /home/httpd/portalribeirao.com.br/html/albums/.users/1001437990:9076567
I've searched the whole PHP website for any reference to this lib that
comes standard with my distro of PHP4. No luck.
Can someone provide me with an address I can go to, to read about DB.php
and it's modules? (Specifically, the DB/mysql.php module)
If there is no website, can someone provide
That was the ticket. Thanks a lot for your help
Adam Plocher wrote:
> $id = 1;
> ${"sql_" . $id} = "hey";
> print $sql_1;
--
Kyle Moore
UNIX Systems Administrator
Trust Company of America
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
Read this
http://www.php.net/manual/en/language.variables.variable.php
Johan
www.pongworld.com
php tt
-Original Message-
From: Fábio Migliorini [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 12:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variable naming
$id = 1;
$s
$id = 1;
$sql_1 = "hey";
$vname = "sql_".$id;
echo $$vname;
--
Fábio Migliorini
http://www.atua.com.br
[EMAIL PROTECTED]
UIN: 42729458
Linux User: 175409
- Original Message -
From: "Kyle Moore" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 1:15 PM
Subject: [
$id = 1;
${"sql_" . $id} = "hey";
print $sql_1;
Try that
-Original Message-
From: Kyle Moore [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 9:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable naming
I want to use the value of a variable in a variable name. For instance
> I want to use the value of a variable in a variable name. For
> instance:
>
> $id = 1;
> $sql_$id = "hey"; //set variable $sql_1 to hey
> print $sql_1; //should print hey
I *believe* (could be wrong) what you want is this:
print ${$sql_1};
Check out variable variables in the dox.
Chris
I want to use the value of a variable in a variable name. For instance:
$id = 1;
$sql_$id = "hey"; //set variable $sql_1 to hey
print $sql_1; //should print hey
I have looked high and low on how to do this. My first idea was eval but
I can't seem to get that to work in this instance. Any ideas?
Augusto,
Regardless if you CAN do this, I recommend against it :)
Relational Databases are much better for storing, updating, and accessing
disparate information than XML.
XML should be used for communication between applications or for an
intermediary output format from relational data.
If you
Hi.
I've been looking for XML, and I'd like to know if you
know if with the XML funtions of PHP I can create a
XML file, add and remove data just, or almost equal of
I do with MySQL.
regards,
Augusto
__
Is there anyway I could make a PHP script run as the user that owns the
script?
> Yeah, but what if they don't JUST want to print it...
Umm, have you read the documentation on either of
the functions? They both return a string; they don't
send anything to standard out (like echo or print does).
$myString = printf();
$myString = sprintf();
echo $myString;
Chris
Yeah, but what if they don't JUST want to print it...
/*untested*/
$i=524;
$n=5-strlen($i);
$outnum="";
for($x=1;$x<=$n;$x++){
$outnum.="0";
};
$outnum.=$i;
On Tuesday 25 September 2001 09:56, you wrote:
> > What if I want to pad a number with zeros in the other
> > direction? I.E:
> >
> Simply put
>
> /usr/local/bin/php -q to the top of your script ...
> i've written one a while ago an email roboter ... it works on command line
But you realize you have to have command line php compiled first, right?
Nathan Cook
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.ph
Chances are that since it was installed as part of your RH install, there
isn't a configure script. I would scrap the RPM and go to www.php.net and
download the source tarball. That includes the configure script that you
are looking for, which will allow you to include whatever you would like a
Hi
Simply put
/usr/local/bin/php -q to the top of your script ...
i've written one a while ago an email roboter ... it works on command line
maybe u wanna check it out :
http://linuks.net/robot.phps
best regards
attila strauss
>
>
> Hi!
> I was wondering how you could run php from the command
hi,
am still having problem to compile my sybase, i have linux 7.1 and php was
installed during installation process, i can't find the ./configure file..
php-4.0.4pl1-9
pls help
Caleb Carvalho
LoadRunner/APM
If you want to cheat, I would create the html doc, then use one of the many
HTML -> PDF converters out there. Of course you could also create the PDF by
hand, there is a module for that
On Tuesday 25 September 2001 08:19, you wrote:
> I'm having some trouble putting on a formatting to printer
> I thought that php works as you wrote. But sometimes I find that much
> older session are still "alive". I have 1440secs for maxlifetime, and
> if I bookmark a page with the session id I can use it till days or
> even weeks (I haven't tested longer time period :))
Are old files being re-use
Make the output in javascript format. If you just want to write to the
document, use something like this
document.write('');
My JavaScript is a little rusty, but I think that's the correct format.
Have the PHP parsed on your server then the remote site could call it like
this:
Hi friends,
I have a created a PHP script for a news ticker. The data is extracted from
a MySQL server. I have to use this script on all our sites which is on
different servers. Is there a way to execute the PHP script from one server
and get the results on these sites.
For eg:
I am looking f
Hi!
I downloaded the Php-Gtk files for Windows 32 Binary
and I am trying to make it work on Windows 98. I
already have phpdev2 with Apahce, Mysql and Php
installed
phpdev2 is in C:\phpdev2
1. Now I downloaded php-gtk and I copied the files
from php4 folder to php directory.
2. Then I copied
I had that problem. Appeared to be some incompatibility with Zend Optimizer
and Zend Cache. Upgrade to Zend Optimizer 1.1.0 and everything worked.
Regards, John
"Joseph Blythe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all,
>
> I just installed Ze
> What if I want to pad a number with zeros in the other
> direction? I.E:
> 524 becomes 00524
printf() / sprintf() is your friend.
Chris
It's very simple - at the top of every page, have a routine that opens a
text file, reads the number inside it into a variable, adds one, and writes
it back out again. If the text file doesn't exist, create it.
Psuedocode:
if (file exists) {
open file for reading;
read contents into $counter
What if I want to pad a number with zeros in the other direction? I.E:
524 becomes 00524
- Original Message -
From: "Christian Dechery" <[EMAIL PROTECTED]>
To: "Kurth Bemis" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 9:41 AM
Subject: Re: [PHP] 2 dec
On Tue, 25 Sep 2001, Kamil Nowicki wrote:
> 1. How to redirect curl_exec() output to a variable without
>passing it thru a file?
>
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
echo $data;
curl_close($ch);
-Sterling
--
PHP General Mailing List (h
At 22:22 19/09/01 -0400, Kurth Bemis wrote:
>i'm looking for a php function to add 2 decimal place sto a number. if
>the number already have one decimal place then one more zero should be
>added to make it two decimal placesanyone know of a quick way to do this?
$number=32.5;
echo number_
And this is where I say kma thanks.
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
On Tuesday, September 25, 2001, at 10:30 AM, [EMAIL PROTECTED]
wrote:
>> Thanks for correcting my misspelling, Andrey, "IS NULL" not "IS_NULL".
>> Another thing to look at, Ben, is IFNULL(). I would give you an
>> example,
> but
>> I never got it to work like I thought it should ;) I think it
It might be a good idea to check the list archives.
http://marc.theaimsgroup.com/?l=php-general
But since I am feeling nice today (assuming you want to do it on *nix). Then
download and un-pack the source and run:
# ./configure [... additional options here like MySQL etc...(make sure you don't
p
> I'm looking for a function which enables me to allow user
> only to enter those dates which are still to come. In my head
> I have three things... one for day, one for month and
> one for year. In order to prevent the user from submitting the
> form with the date which is in past, I need pr
It is the response code and the number of bytes transferred.
These are the codes:
#define HTTP_CONTINUE 100
#define HTTP_SWITCHING_PROTOCOLS 101
#define HTTP_PROCESSING102
#define HTTP_OK200
#define HTTP_CREATED
Hi m8
I just say... rtfm ... start here:
>From the manual:.. (http://www.php.net/manual/en/function.setcookie.php)
int setcookie (string name [, string value [, int expire [, string path [,
string domain [, int secure])
Hey!
I know the question is somewhat missplaced thought I think someone on this list should
be able to answer me.
I'm doing a statistics application wich uses the apache http-acces.log file. One line
looks like this:
195.58.118.234 - - [03/Oct/2000:09:39:04 +0200] "GET /temp/odenresor HTTP/1.1"
Good afternoon,
I'm looking for a function which enables me to allow user only to enter
those dates which are still to come. In my head I have three
things... one for day, one for month and one for year. In order to prevent
the user from submitting the form with the date which is in past, I need
When I set a cookie like below, what does the "300" represend in time?
Seconds?
setcookie ("referred", "yes", 300, "", ".advparadigm.com",0);
Thanks,
Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
1 - 100 of 167 matches
Mail list logo