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:
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
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
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 working
Have you looked into GetImageSize()? php.net/getimagesize
Though, I don't know if it works with remote files. Try it.
Maxim Maletsky
PHPBeginner.com
-Original Message-
From: Marian Vasile [mailto:[EMAIL PROTECTED]]
Sent: mercoledì 26 settembre 2001 8.48
To: [EMAIL PROTECTED]
try this!
I don't know how effective is preg_replace w/ huge memory contentsbut
this should work fine!
$mem = an arc is an archer, arc but what about marc and darcy?;
$match = arc;
$count = 0;
preg_replace(/\b$match\b/ie, \$count++;, $mem);
echo $count;
Richard Baskett [EMAIL
Original message
From: Richard Baskett [EMAIL PROTECTED]
Date: Wed, Sep 26, 2001 at 12:01:11AM -0700
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] one pattern, one string, multiple results
I just can not seem to figure this out.
If i have a pattern 'arc' and I want to search the string:
an
Hi Richard.
Subsrt_count() is what you are looking for:
int substr_count (string haystrack, string needle)
php.net/substr_count
P.S: Helen Fielding's Bridget Jones Diary is a nice novel, hun?
Maxim Maletsky
PHPBeginner.com
-Original Message-
From: Richard Baskett [mailto:[EMAIL
Steve Cayford [EMAIL PROTECTED] on 25/09/2001 17:28:57
To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] Getting my head around nulls
On Tuesday, September 25, 2001, at 10:30 AM, [EMAIL PROTECTED]
wrote:
Just had a look at manual, ifnull() seems
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
Thank you much! I was going to use preg_grep, preg_replace, preg_match,
preg_match_all something like that, but this subsrt_count() will do the
trick nicely! Thank you very much!
Rick
Hi Richard.
Subsrt_count() is what you are looking for:
int substr_count (string haystrack, string
If I use GetImageSize I get
Warning: Unable to open http://www.php.net/gifs/logo.gif in
/home/irisi/public_html/bonic/webgal/test.php on line 2
Any idea why ?
Maxim Maletsky ) [EMAIL PROTECTED] wrote in message
Anthony,
Anthony [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
posted mailed
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
use this modifier /ies instead of /ie
_lallous [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
try this!
I don't know how effective is preg_replace w/ huge memory contentsbut
this should work fine!
$mem = an arc is an archer, arc but what about marc and
I have a sample file in http://demo.ina-finland.fi/sample.html and
there's a table which is named ruudukko.
How can a just get that table in to my other html file using php?
ThAnKs!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
On Wednesday 26 September 2001 01:07, Andrew Austin wrote:
What is the method for mySQL to surround single speechmarks as in
(don't) so it will be accepted in an SQL statement.
http://php.net/addslashes
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
Error 032: Recursion
Hi!
Is it possible to use PHP (or maybe Perl) for communication with a
Novell-network/a Novell-server from a webserver?
/Örjan
--
Mail: [EMAIL PROTECTED]
URL: http://www.tag.nu/orjan/
Hey,
I just made a kewl little script, that i want to test out it requires GD,
it doesn't appear to work on my Windows machine, but i think it might work
better on a Unix/Linux machine, so does anyone know of a free web host, that
supports php, gd, or someone that can open an account for about
Ok i've gone through the archives.. and you know.. I don't think anybody
really understands this function. I hope I am wrong, but here goes.
I have an array called let's say.. $results
first dimension are just numbers
and the second has associative names [name],[title],[descript],[keycount] so
hi all,
just finished installing php-4.0.6, now when writing the test.php page with
the ?phpinfo();?
i am still getting the PHP Version 4.0.4pl1 that was installed with my linux
7.1 distro !!!
any help?
Caleb Carvalho
Application Engineer
LoadRunner/APM
Can You describe more detail ??? What kind, version of Sybase server do
You use, what version of PHP, what Linux distribution etc... In other
case I can't help You.
Krzysztof Kocjan
Edney Marcel Imm wrote:
Hi
How I can connect to syBase?
Tks
hi all,
i've managed to setup php-4.0.6 sucessfully with sybase, apache :)
does any1 know where to get a sample script that will initially get the
pubs2 data from sybase?
Caleb Carvalho
LoadRunner/APM
-
On Tue, 25 Sep 2001 09:36:57 -0500, you wrote:
?php
function foo($p) { echo $p['fred'] . $p['banana']; }
foo(array('fred' = 'hello', 'banana' = 'world'));
?
Yeap, I know that. I thought about this bit of hack but this breaks the
conception on giving parameters. Also this
Let this be last message in the thread. Thanks for the examples! I'll wait for PHP5.
There is a possibility that this feature will
be in.
Have fun
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: [EMAIL PROTECTED]
To:
Follow up to my own message:
If you want to also skip even needing the empty 'array()' (new fianl
example) - check if it is an array, and only do the first extract of
the parameters if there's something there.
?php
function foo($p='')
{
$foodefault = array(
'foo_fred'=
Chris Lee wrote:
your server has to open a connection to a remote
host to see if there are
messages ? like email ?
yes. It is a sort of ftp-like protocol.
if this is so then use
cron once every so often to
check if there are new messages.
I'll receive/send a lot of messages and this
Hello,
several months ago I discovered that under some IE 4.0 and upgrades of 4.0 the
header() function would simply not redirect if
you don't put exit() right after the header() call. Now I'm discovering that header()
does not work under netscape 6 if you put
exit() right after!
How come
Original message
From: pierre-yves [EMAIL PROTECTED]
Date: Wed, Sep 26, 2001 at 08:41:24AM -0400
Message-ID: 007301c14688$8d9b0d10$0100a8c0@py
Subject: [PHP] header() confusion
Hello,
several months ago I discovered that under some IE 4.0 and upgrades of 4.0 the
header() function would simply
Problem;
call external perl script with variables as arguments when variables may have
spaces or other restricted characters.
Details;
script needs to process $name $phone $creditcard (as examples)
normally this would easily be solved passing the command as
$command=myscript.pl $name
Matthew Delmarter [EMAIL PROTECTED] wrote:
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
Hi,
In my php program I am trying to download a file from server. My web
server and file downloading server is diffrent. When use ftp_get command
it is giving the result true. But the file is not there in client
system. Please help me.
anil
[EMAIL PROTECTED]
--
PHP General Mailing List
Hello everyone!
I've a quick question I've been working on for a few days, look into the
archive of the mailing-list but found nothing relevant:
How to forward a session variable such as a password to a page containing
frames?
I tried something like frame src=menu.php?? echo session_name().
Hello,
But can you be more specific what I need to do with this function?
How to use it in the context?
Thanks
Pedja [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
function array_search ($needle, $haystack, $strict = FALSE)
foreach (array_keys($haystack) as
Hi all,
I'm having a problem with dynamically building a value list.
My code:
?php
mysql_connect ('localhost', 'root', 'monty');
mysql_select_db ('Heronsql');
$query = (select HEI from heronuser); // LINE 22 on original script
$result = mysql_query($query, $mysql_link);
The reason my query didn't work is you have time_in as a varchar.
Change it to a datetime field or timestamp field and it should work.
I would suggest making it a timestamp field. That way whenever
you update the row (probably update the session field with a new
session) MySQL will
date_add(time_in,interval 1 hour)
is the same as
time_in + interval 1 hour
as of MySQL 3.23 so unless you are using 3.22 you should get the
same result (anything prior to 3.22 won't support date_add)
Neither query is going to work, however, because time_in is a varchar
rather than one of the
So... when redirecting the user to a different page, you should
always put exit after the header() call.
Yes that's what I do but it freeze on netscape 6 ?
Does anyone has experience this or am I the only one ?
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Thanks Gottfried, but that doesn't change the response I get.
Any more suggestions.
George P in Edinburgh
PS I am hoping to come over to Frankfurt for the conference in November
(boss might pay)
- Original Message -
From: [EMAIL PROTECTED]
To: George Pitcher [EMAIL PROTECTED]
Sent:
Yes that's what I do but it freeze on netscape 6 ?
FAFAIK the client's browser can't influence the header() call in
your script. Are you sure there aren't any errors somewhere else. Eg
before the header() call or at the start of the page where you
redirect the user to?
--
* RzE:
--
Yes that's what I do but it freeze on netscape 6 ?
FAFAIK the client's browser can't influence the header() call in
your script. Are you sure there aren't any errors somewhere else. Eg
before the header() call or at the start of the page where you
redirect the user to?
Indeed. A good way
Yes that's what I do but it freeze on netscape 6 ?
FAFAIK the client's browser can't influence the header() call in
your script. Are you sure there aren't any errors somewhere else. Eg
before the header() call or at the start of the page where you
redirect the user to?
Indeed. A
A couple of things about the code...
1) -
mysql_connect ('localhost', 'root', 'monty');
should be
$mysql_link = mysql_connect ('localhost', 'root', 'monty');
2) -
You only pass
you can read more about it all and copy and adapt the code snippter from
oops...I was going to add...
2) -
$result = mysql_query($query, $mysql_link);
doesn't require the $mysql_link argument, try
$result = mysql_query($query);
Another general comment is that you have copied a bit of your code that
seems to include the root password to mysql. Not a good idea -
From the PHP manual:
http://www.php.net/manual/en/features.remote-files.php
Example 20-1. Getting the title of a remote page
?php
$file = fopen (http://www.php.net/;, r);
if (!$file) {
echo pUnable to open remote file.\n;
exit;
}
while (!feof ($file)) {
$line = fgets ($file, 1024);
1. this:
print(option value=\$row[0]\$row[0]/option);
should be this:
print(option value=\{$row[0]}\{$row[0]}/option);
or like this:
echo 'option value='.$row[0].''.$row[0].'/option');
The reason for it is that within double quote you can parse for 'simple'
variables
You just need a simple Regex. This should do it
?php
$fp = fopen(http://demo.ina-finland.fi/sample.html,r;);
$buffer = fread ($fp, 100);
preg_match(|Table[^]*ruudukko[^]*.+/Table|is, $buffer, $regs );
$table = $regs[0];
echo $table;
?
Sheridan Saint-Michel
Website Administrator
It is possible to get the filesize for couple files on other server, without
downloading ?
Probably this will be not fully resolved, but is there any way ?
Thanx,
M
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
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]).
I'm not sure what was changed.
On Fri, 21 Sep 2001, vishal khialani wrote:
Hi,
I am searching companies who will host my site. Presently I am looking out
for php, mysql and ssl support. So does anyone know a good company ?
Vishal
Something to consider... perhaps supporting those companies that support PHP
might be a
All you need to learn, about submission is just forms (post get) and some
javascript, to simulate perfectly like user is typing the info.
Youca use two frames for that and it's really easy... :)
Yours
Marian
Krushna Kumar R [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
On Wednesday, September 26, 2001, at 02:48 AM, [EMAIL PROTECTED]
wrote:
Steve Cayford [EMAIL PROTECTED] on 25/09/2001 17:28:57
To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] Getting my head around nulls
On Tuesday, September 25, 2001, at
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Dave Vanauken) wrote:
normally this would easily be solved passing the command as
$command=myscript.pl $name $phone $ccnum;
$results=passthru($command);
and parsing out the argv's in the perl script
however, this breaks if
AFAIAC,
The only function that gets you image size is GetImageSize() which you
claimed cannot do remote check. Therefore, I do not think you can manage
this without downloading/copying the file to your server.
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Marian Vasile
You can't send from outside, something that is INSIDE... I mean a session
variable.
If that could be done than probably I will seriously have security problems.
Now what you've written it's correct in my opinion and it should work.
What are you trying to do exactly? to save a session variable,
Thanks for everyone's help but this is still failing to work.
Revised code is:
?php
$link = mysql_connect ('localhost', '', '')
or die (Could not select db);
mysql_select_db ('Heronsql')
or die (Could not connect);
$query=select distinct HEI from heronuser;
$result =
If you use preg_match (PERL style Regex) instead of ereg
you can use the s match modifier which tells it to treat the
entire file as a single line... so your Regex would be
if (preg_match(|title(.*)/title|is, $line, $out)) {
(The i is case insensitive... since you were using eregi)
Hope that
Just looking up that extract function, the manual says it extracts into
the current symbol table. I assume that means that within foo() the
array would be extracted into local variables. Is that right?
-Steve
On Wednesday, September 26, 2001, at 06:50 AM, Alister wrote:
Follow up to my own
Also look for missing semicolons and unclosed braces in the lines above
22.
-Steve
On Wednesday, September 26, 2001, at 09:19 AM, Derek Mailer wrote:
oops...I was going to add...
2) -
$result = mysql_query($query, $mysql_link);
doesn't require the $mysql_link argument, try
$result =
- Original Message -
From: George Pitcher [EMAIL PROTECTED]
To: Maxim Maletsky (PHPBeginner.com) [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, September 26, 2001 9:42 AM
Subject: Re: [PHP] Building Dynamic Value list using ohp
Thanks for everyone's help but this is still
what's the error you're getting now?
if you aren't getting any error, but it just isn't working try something
like...(note that I haven't tested this code).
$drop_down_list = select name=\select\;
$link = mysql_connect ('localhost', '', '')
or die (Could not select db);
Sheridan,
I added the error stuff (adding an else bit) but when I went to my browser,
I got the same resulting error I've always had.
I have tried pasting the select statement striaght into MySQL_Front and I
get my nice neat list. So it doen't look like a SQL problem.
Head banging off wall
Hi,
HTTP has a method called HEAD, that is for example can be used for
exmample to get the requested files' size if the other web
server/php script supplies it.
So all you have to do is to make a connection to the other web
server, give a HEAD request (it is almost the same as GET), and
parse the
What error do you see, George?
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]]
Sent: mercoledì 26 settembre 2001 17.01
To: George Pitcher; [EMAIL PROTECTED]
Subject: Re: [PHP] Building Dynamic Value list using ohp
-
Does anyone have a recommendation on a PHP based Chat system. I'm looking
for an easy to install and reliable system.
Thanks,
Tom
--
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
If you see no errors this might mean you have no records :-)
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Derek Mailer [mailto:[EMAIL PROTECTED]]
Sent: mercoledì 26 settembre 2001 17.14
To: George Pitcher
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Building Dynamic Value
On Wed, 26 Sep 2001 09:47:57 -0500, you wrote:
Just looking up that extract function, the manual says it extracts into
the current symbol table. I assume that means that within foo() the
array would be extracted into local variables. Is that right?
As
Try to browse hotscripts.com, it has a plenty of them for you to choose.
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: mercoledi 26 settembre 2001 17.06
To: php list
Subject: [PHP] PHP Chat recommendations
Does anyone have
Derek,
That worked a treat - not to try and get the flatness out of my head - that
wall was hard!
What still has me stumped is that as far as the query-building goes, both
methods are pretty much the same yet yours doesn't generate the error yet
mine does
Prepare yourselves as this is the
My friend owns a hosting company that supports php and MySQL along with a
ton of other things.and they are VERY inexpensive. You can check them
out at http://www.eaccounts.net/ref/jp52950052/?referer=emaillink
Jeff Pearson
Disclaimer: Yes the link tracks the referrals.No. I don't make any
I did, that's why I'm asking for a recommendation. There are quite a few.
From: Maxim Maletsky \(PHPBeginner.com\) [EMAIL PROTECTED]
Organization: PHPBeginner.com
Date: Wed, 26 Sep 2001 17:18:15 +0200
To: 'Tom Beidler' [EMAIL PROTECTED], 'php list'
[EMAIL PROTECTED]
Subject: RE: [PHP] PHP
I was just wondering if I could call some functions out side of the class
I'm making? The reason why I want to do this is so that I don't have to
rewrite the functions as methods in the class and I don't want to get too
far into what I'm doing before I find out it doesn't work.
Thanks,
Jay
--
Hey all,
I've been working on my first OPP driven PHP code and wanted to see what
everyone thought and any ideas anybody can add to the code that I'm working
on. I've had to make some concessions due to the limitations of PHP's OOP
model and the fact that I'm using PHP3 which doesn't functions
Help!
I'm trying to install a development Apache + PHP environment on the same
machine as our test environment (Apache + mod_SSL + PHP). I followed the same
procedure that I used to set up our test system (which works fine) and
everything compiles and builds fine. However when I try to start
: I was just wondering if I could call some functions out side of the class
: I'm making? The reason why I want to do this is so that I don't have to
: rewrite the functions as methods in the class and I don't want to get too
: far into what I'm doing before I find out it doesn't work.
Sure
How do I turn off the error messages that appear at the top of the page? I
have this function below that if an image is not there for $url, it give a
warning.
$size = GetImageSize($url);
Example error message below...
Warning: getimagesize: Unable to open 'http://www.yahoo.com' for reading.
How do I turn off the error messages that appear at the top
of the page? I have this function below that if an image is
not there for $url, it give a warning.
$size = GetImageSize($url);
Example error message below...
Warning: getimagesize: Unable to open 'http://www.yahoo.com'
for
The reason for it is that within double quote you can parse for 'simple'
variables only (es: $var, not $var[]). Otherwise it gives you a parse
error.
Just a quick note, this is partially true. The following works :
error_reporting(E_ALL);
$arr = array ('a' = 'apple','b' = 'banana');
I'm not positive on this, but I think I catch your drift.
when you get the results of your query...
place 1 = $results[2]
place 2 = $results[0]
place 5 = $results[4]
Later,
Jerry Lake
Interface Engineering Technician
-Original Message-
From: Matthew Delmarter [mailto:[EMAIL
Ok, I now feel stupid because it still don't work or I still don't get it.
Here are the filez please feel free to comment and advise.
(See attached file: index.php)(See attached file: TESTAD~1.PHP)(See
attached file: index2.php)(See attached file: menu.php)
Regards,
Michael
I want PHP parser to warn/fail when I try to use a variable not declared
before. Like Option Explicit on ASP/VBA.
Thnx in advance :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
Ok, I now feel stupid because it still don't work or I still don't get it.
Here are the filez please feel free to comment and advise.
(See attached file: testadmin.php)(See attached file: index2.php)(See
attached file: menu.php)(See attached file: index.php)
I want PHP parser to warn/fail when I try to use a variable
not declared before. Like Option Explicit on ASP/VBA.
Look here:
http://www.php.net/manual/en/function.error-reporting.php
Chris
I have created a 2D array, then written it into a tet file. The file is
written such that all the secondary array elements (the rows) are seperate
lines, with the columns tab-delimited. Now I'd like to read this file back
into a 2D array. I thought this should work:
$array_file = file
You were right! I changed it to a timestamp (14) and the selection is
working great now.
Only problem is that when I logout which UPDATE's the table to clear the
$session field, the $time_in timestamp gets updated because of the NOW()
function. I need that date to stay the same when someone logs
Awesome... Its all working perfectly now! Makes perfect sense why the update
is like that.
thanks again!
__
Jason Dulberg
Extreme MTB
http://extreme.nas.net
-Original Message-
From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]]
Sent: September 26, 2001 1:59 PM
I've got the docs you all mentioned in response to my earlier questions.
Thanks a ton! They were almost exactly what I needed.
There's only one thing that I can't figure out how to do with the
module. In PHP, there's a function 'mysql_insert_id()'. It returns the
Autoincriment ID of the last
I'm attempting to build an array of filenames in a sub-directory with
sub-directories. I'm using a modified version of code found on php.net -
the function I wrote is here:
function getDirList ($dirName) {
$dirList=array();
$d = dir($dirName);
while ($entry = $d-read()) {
Chris Hobbs wrote:
$dirList = $dirList + getDirList($dirName./.$entry);
OK, on a lark I changed the above to use array_merge, and the problem
went away - that'll teach me to use a shortcut :)
--
___ ____ _
Chris Hobbs / \ \/
Hi,
I wish to read the message string posted by my form into a php program.
I tried to use the environment variable $HTTP_RAW_POST_DATA but this did not contain
any value.
Can someone help me with reading the STDIN input from within the php program ?
Thanks and Regards,
Ashish Natani
Get
Hola todos..!!
Mi nueva direccion a partir de ahora es [EMAIL PROTECTED]
Bye!
Gonzalo
does anyone know what does $this mean? I saw this on the php.net
tuturial
for references inside a constructor.
I thought that $this is already a reference?
The way it was used :
class Foo
{
function Foo($name)
{
// create a reference inside the global array
just for clarity, why do we need to reference a variable when the variable
already contain a reference? Thanks
Ming-Chieh Lee [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
does anyone know what does $this mean? I saw this on the php.net
tuturial
for
Thanks. That will work quite nicely.
-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 1:20 PM
To: Matthew Walker; [EMAIL PROTECTED]
Subject: RE: [PHP] PEAR DB Questions
don't know about pear, but in case you can't do it, there's a
When I update my mysql database, is there a way with PHP to know what or if
any records where updated?
Joseph
--
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,
Caleb Carvalho wrote:
just finished installing php-4.0.6, now when writing the test.php page with
the ?phpinfo();?
Try again after you restarted apache ;)
--
PHP Developer, home: http://www.moijk.net | work: http://www.coretrek.com
tan: Tangent |
Joseph Bannon wrote:
have this function below that if an image is not there for $url, it give a
warning.
$size = GetImageSize($url);
Just use
$size = @GetImageSize($url);
but to stop display of error for all functions:
error_reporting (0);
the opposite, reports EVERYTHING, even bad
I can not figure out why this is not working!
for ($j=0; $j$resultNum; $j++) {
$newvar = finalresult.$a;
$$newvar[$a][name] = $resultRow[name];
$$newvar[$a][title]= $resultRow[title];
$$newvar[$a][descript] = $resultRow[descript];
$$newvar[$a][countkey] =
I think this is what you are looking for
http://www.php.net/manual/en/function.mysql-affected-rows.php
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com
- Original Message -
From: Joseph Bannon [EMAIL PROTECTED]
To: PHP (E-mail) [EMAIL PROTECTED]
Sent:
have you thought of just using
http://www.php.net/manual/en/function.serialize.php
http://www.php.net/manual/en/function.unserialize.php
its alot easier.
--
Chris Lee
[EMAIL PROTECTED]
John Frenzel [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I thought i'd ask for your comments on how you'd code this
common perl code with PHP:
$value = some_function() or return 0;
i usually code my functions to return 0 or on error, but
have to use the following code to handle it... neither seem
like
1 - 100 of 120 matches
Mail list logo