Hi
I've created a form and a bit of code that processes the form and directs to
a confirmation page asking the user to confirm if the details they entered
are correct. Once they hit the confirm button how would I send that
confirmation page as an html file attached to their email. I know its go
check out Oreilly's articles too.. very helpful ..
http://www.macdevcenter.com/pub/ct/49
> You don't need OS X server. OS X includes Apache and Perl.. you can
> get MySQL and PHP4 from http://www.entropy.ch
>> Do I need OSX SERVER to run everything I'd need for a development
>> environment, or
Thanks for the help
Duncan Hill wrote:
> Use different variable names. Or make your function return a value, and
> use assignment to handle it.
Finally I made the function to take the select name as an optional variable
and used different names for the two. This helped me in other situations
Later version of Javascript.
Justin French
on 21/06/02 9:34 AM, Edgar ([EMAIL PROTECTED]) wrote:
> Hi,
>
> Are there any way to know what screen resolution use a user in your monitor?
>
> Thank you in advance.
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi, i have this script that simply reads lines from a txt files
and displays them on my site, itlists the first 4 entries of a txt file
with the files that exist on a download page:
3)
{
$fim=$l - 3;
}
else {
$fim = 0;
}
for ($i = $l; $i >= $fim ; $i--) {
$array=explode
You don't need OS X server. OS X includes Apache and Perl.. you can
get MySQL and PHP4 from http://www.entropy.ch
-Josh
At 6:06 PM +1000 6/21/02, Justin French wrote:
>Do I need OSX SERVER to run everything I'd need for a development
>environment, or will the base version of OSX have the capabi
Ignore me ..I just got up :)
Tom
At 01:09 PM 22/06/2002 +1000, Tom Rogers wrote:
>At 01:09 PM 21/06/2002 -0500, Rick Kukiela wrote:
>>Ok, I have never, in my entire life, have such a persistant little freakin
>>problem with a programming language... It started out while i was running
>>4.1.2 whe
>>Oh and here is the output i get when i run the script.
>>
>>
>>Warning: Failed to write session data (files). Please verify that the
>>current setting of session.save_path is correct (/tmp) in
>>/usr/local/apache/htdocs/cp/login.php on line 43
TR> This below is your problem, you must b
At 01:09 PM 21/06/2002 -0500, Rick Kukiela wrote:
>Ok, I have never, in my entire life, have such a persistant little freakin
>problem with a programming language... It started out while i was running
>4.1.2 where sessions would not write to the disk properly. I researched and
>found a bug. I coul
Hi All,
I am trying to build a "client interface" for each of my web-hosting
customers, and would like to have them log into the system using the same
username/password combinations that are used for FTP, email etc.
ie: those stored in the Unix system's passwd and shadow passwd files.
I have se
Not sure what you are doing, but google is not going
to index pages that require authentication. You should
send the 200 header before any script output - i'm not
sure what this will do to your authentication
scheme...
I do the same with the false directory structure - in
my case i have a script
Can you add a checkbox to say "update this row", then just check for
checked checkboxes??
---John Holmes...
> -Original Message-
> From: Daniel Hoffman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 21, 2002 9:28 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] mass sql update array
>
>
Oops, I spoke too quickly. The problem isn't with the close, it's with
the door_info() syscall. Perhaps file descriptor 8 isn't a door ...
[billy]
--
/-=[ BILLY S HALSEY ]=--\
| Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW |
|
Sorry bout that;
http://www.stetson.edu/~paland/phptruss.txt
On Fri, Jun 21, 2002 at 06:44:28PM -0700, Billy S Halsey wrote:
> You need to paste a little more of the output. Looks like it's got a
> problem trying to close file descriptor 8. If you scroll up a bit more,
> you'll see a call to
You need to paste a little more of the output. Looks like it's got a
problem trying to close file descriptor 8. If you scroll up a bit more,
you'll see a call to open() with a return value of 8. That will show the
file it is trying to open and then close. For some reason it appears
that it is
Thanks.
I was running it without the -f and not getting much.
Running a truss -f httpd I get the normal first process that forks and
then on the second process I get:
29958: fcntl(8, F_SETFD, 0x0001) = 0
29958: door_info(8, 0xFF23A460)Err#9 EBADF
Hello,
On 06/21/2002 05:59 PM, [EMAIL PROTECTED] wrote:
> I am coming over from Perl life. Does anyone recommend any good beginners
> books on learning PHP? I am looking for something similar too learning
> perl from Oreily.
Here you may find some PHP books already reviewed. Not every one is
I am playing with php and mysql.
I need to do a mass select from a database that will return in excess of 250
records each with 3 fields. Only one field will be available for update.
They are currently held within standard http forms ready for a submit.
I then need to do an update of each record
Patrick,
Try running it thus:
truss -f apachectl start
That should tell you where it's dying.
[billy]
--
/-=[ BILLY S HALSEY ]=--\
| Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW |
| "All opinions and technical advice offered
Not really, no. You can run httpd directly from within gdb and see what it
says. Otherwise I would suggest recompiling both Apache and PHP from
scratch.
The combination of Apache 1.3.26 and PHP 4.2.1 works fine.
-Rasmus
On Fri, 21 Jun 2002, Patrick Aland wrote:
> Thats the thing. There is no
Thats the thing. There is no error message. apachectl start says that
apache started. However when you look there are not httpd processes
running. I comment out the load module and it works.
Theres nothing in the apache error logs either. Is there some way to
increase the debugging?
On Fri, Ju
Without the actual error message, there is nothing we can do.
On Fri, 21 Jun 2002, Patrick Aland wrote:
> Hey all,
> I just upgraded to 4.2.1 on apache 1.3.26 and now apache won't start.
> If I comment out the LoadModule in the httpd.conf apache starts fine,
> otherwise it just starts and exit
Hey all,
I just upgraded to 4.2.1 on apache 1.3.26 and now apache won't start.
If I comment out the LoadModule in the httpd.conf apache starts fine,
otherwise it just starts and exits almost like it can't fork. I don't
get any error messages.
Running on Solaris 7 with gcc 3.1
I use postgres but
Hi. I started with PHP and MySQL from scratch (not knowing serious
programming before) a couple of months ago with the books "PHP4 A
beginner's Guide" written by Bill McCarty (Osborne) and "PHP and MySQL
Web Development" written by Luke Welling and Laura Thomson (SAMS).
The first one, covers I th
Does anyone know how to upload a file through PHP through the HTT interface.
I use fopen() to open remote php scripts using the GET method for non-file
uploads but it doesnt work with HTTP POST or file uploads.
Does anyone have any ideas?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
Nope, doesn't work.
Maybe it's something with the server/PHP setup?
> From: Richard Baskett <[EMAIL PROTECTED]>
> Date: Fri, 21 Jun 2002 16:35:11 -0700
> To: Tom Beidler <[EMAIL PROTECTED]>, PHP General
> <[EMAIL PROTECTED]>
> Subject: Re: [PHP] header("Location with & in URL
>
> I do this all
PHP is probably escaping the single quotes for you:
it's -> it\'s
When addslashes() is applied to this, both the backslash character and
the single quote are escaped:
\ -> \\
' -> \'
The result is what you see:
it\'s -> it\\\'s
If you strip slashes twice, you'll be back to normal.
Chris
I got that error once - turned out that I'd forgotten to compile the IMAP
lib with SSL support. Try recompiling your IMAP libs and then recompiling
everything else.
Danny.
FreeBSD 4.5/Apache 1.3.26/PHP4.2.1
- Original Message -
From: "Rick Kukiela" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECT
Tom,
Include the $returl variable within the quotes, like this:
header("Location: $returl");
If that doesn't work, add these two lines just before the header() function:
echo "[$returl]";
exit;
Maybe that will uncover something.
Chris
Tom Beidler wrote:
>I'm trying to use header("Location
I think Ramus's recent book, _Programming_PHP_ (O'Reilly), is quite a
good introduction to the language and teaches some good fundamentals
about the way PHP works as well.
Chris
[EMAIL PROTECTED] wrote:
>I am coming over from Perl life. Does anyone recommend any good beginners
>books on lear
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then OMAR IGNACIO CAMPOS GALAN declared
> When I use addslashes to add a back slash to a single quote, it returns 3
> back slashes (example: 'it\\\'s'. Is that correct? Am I doing something
> wrong?
You're doing something wrong ;-)
I'll be
I do this all the time and I just use this syntax:
header("Location:
http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client";);
exit;
And it works for me...
Rick
"The greater danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Tom Beidler declared
> I'm trying to use header("Location to redirect to a URL that has variables
> in it, ie.
>
> http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client
>
> When it redirects I get the url minus everything a
I'm trying to use header("Location to redirect to a URL that has variables
in it, ie.
http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client
When it redirects I get the url minus everything after the first ampersand.
I tried using htmlentities with no joy like so...
$retUrl = htmlspeci
When I use addslashes to add a back slash to a single quote, it returns 3
back slashes (example: 'it\\\'s'. Is that correct? Am I doing something
wrong?
Thank you
Omar Campos Galán
Desarrollo de Formas Electrónicas
CompuSoluciones
Tel. (0133) 3818-1554 Fax (0133) 3818-1599
www.compusoluciones.c
Hi!
i made some benchmarks because my script is somehow very
slow. In this script i execute 3 queries to PostgreSQL server
and one connect string. I connect to socket.
I check this queries in pg with explain analyze and i have
result 1.18ms so i add a little and let say that for those 3
queries
PHP.net has some good examples if you search under the regex functions. Or
you might use something like the function below. I wrote this in a search
engine spider. It will return a list of local html links found on the given
page. The way I used this in my spider was to build a master list of
Hello,
On 06/21/2002 01:15 PM, Erik Price wrote:
>
>
> FRUSTRATION.
>
> I figured it was time to upgrade PHP anyway since I was using 4.1.2 and
> then there's that Apache security problem, so I upgraded that too. And
> my sendmail problem is still present -- every time I try to call the
>
This looks like a great example to add to weberdev. If you get this
working,
would you care to spend 3 minutes and let other PHP developers enjoy
from
your experience?
You are one click away from doing a good deed :)
http://www.weberdev.com/index.php3?GoTo=addexample.php3
Sincerely
berb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi
In theory I can work out how to get http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am coming over from Perl life. Does anyone recommend any good beginners
books on learning PHP? I am looking for something similar too learning
perl from Oreily.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm going over some code handed to me, a logout function:
function user_logout()
{
setcookie( 'user_name', '',(time()+28800), '/', '',0);
setcookie( 'id_hash', '',(time()+28800), '/', '',0);
}
Doesn't this mean the cookie will expire after 8 hrs? So what's this
really doing?
Moreover I fou
Hi,
I am not using a 404 in this case. What I do is to name a file like a
directory name and then parse this file with php. The parameters look like
the filename.
e.g. server.com/file/parameter.html
In an other case I do use a 401 error. What is changing if I send this ok
header? And when shoul
As a rule you never put "include" in a configuration directive. Use
--with-mm=/usr
PHP expects to find both the library and the header files under the
specified dir.
-Rasmus
On Fri, 21 Jun 2002, Ray Hunter wrote:
> Find out where you bsd has all the mm header files and add that to your php
>
Find out where you bsd has all the mm header files and add that to your php
configuration...
Example:
--with-mm=/usr/include
RAY HUNTER
- Original Message -
From: "Rick Kukiela" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 1:45 PM
Subject: [PHP] mod_mm prob
Nothing is ever easy... I now accept this fact
I cant get sessions files handler to work so now im trying to
compile --with-mm, php compiles fine but when i compile apache this happens:
<=== src/modules/php4
<=== src/modules
gcc -c -I. -I/usr/libdata/perl/5.00503/mach/CORE -I./os/unix -I./in
George,
"George Whiffen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I'm not quite sure what you are trying to achieve, but if holding the
> data in a file is realistically an option i.e. your data is static, then
> why not consider holding your final ou
Edgar,
Using Javascript, yes. This has been answered on this list about a week
ago. I suggest you search the archives for the details.
HTH
Chris
Edgar wrote:
>Hi,
>
>Are there any way to know what screen resolution use a user in your monitor?
>
>Thank you in advance.
>
>
>
>
--
PHP Genera
On Thu, 20 Jun 2002, Edgar wrote:
> Are there any way to know what screen resolution use a user in your
> monitor?
>From a quick search with Google:
http://www.alt-php-faq.org/local/89/
Good luck.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
You could look at $HTTP_SERVER_VARS['SCRIPT_NAME'] in the included file, for
one.
Kirk
> Hi, is there any way to know in the included file the filename of the
> parent file?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
Did anyone work on application level logging module ? Please let me know the
correct architecture, since I am not able to create a singleton per webserver.
Thanks
Regards,
Puru
Hi, is there any way to know in the included file the filename of the
parent file? for example for restricting the script execution in the
included file to certain files.
thanks,
--
Tigran Nazaryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
umm, well i had the same problem on freebsd 4.5-release so i dunno if its
neccessarily a freebsd problem, i mean the directory exists, the www has
write permissions to it so it should work and it doesnt so im thinking
something in php is broke.
- Original Message -
From: "Ray Hunter" <[E
Well, i would rather not have to recompile becuase of all the problems i had
compiling with mod_perl and mod_ssl together with apache so does anyone else
have any ideas how to get files to work??? anyone else have this problem?
what gives?
Rick
- Original Message -
From: "Ray Hunter" <[EM
On Fri, 21 Jun 2002, Edgar wrote:
> Hi,
>
> Are there any way to know what screen resolution use a user in your monitor?
See javascript.
--
Sapere aude
My mind not only wanders, it sometimes leaves completely.
Never attribute to malice that which can be adequately explained by stupidity.
-
you need to compile php with-mm and then you need to edit your php.ini file
to use mm instead of files. this increases your php performance for
sessions.
Check you phpinfo() to see if you have mm compiled in and then edit your
php.ini file like this:
session.save_handler = mm
S RAY HUNTER
ema
Hi,
Are there any way to know what screen resolution use a user in your monitor?
Thank you in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how do u do that?
- Original Message -
From: "Ray Hunter" <[EMAIL PROTECTED]>
To: "Rick Kukiela" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 1:16 PM
Subject: Re: [PHP] some one PLEASE help me!
> Why don't you try using mm for the sessions...then you do not have t
Hi,
Are there any way to know what screen resolution use a user in your monitor?
Thank you in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I was having some problems with my error logs. I just figured out what the
problem was! Thought everybody might benefit from it's solution so here it goes.
The problem was that the php error log was only showing errors created by my
command line scripts that were being executed by cron. The solut
Why don't you try using mm for the sessions...then you do not have to write
to disk, it is all in memory...
RAY HUNTER
- Original Message -
From: "Rick Kukiela" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 12:09 PM
Subject: [PHP] some one PLEASE help me!
First, run a php script that calls phpinfo() and make sure that the php
module in your server is running against the php.ini file you think it
is. Verify the name and path of the log file.
Second, make sure that errors are being reported, meaning check your
php.ini file for the "error_reporting"
Ok, I have never, in my entire life, have such a persistant little freakin
problem with a programming language... It started out while i was running
4.1.2 where sessions would not write to the disk properly. I researched and
found a bug. I couldnt get php properly upgraded... dont know why so i ha
Do this, set "log_errors = on" in your php.ini file. Do not set the
"error_log = file" comment that line out and all other error_log ones as
well. This will then log all errors to apache's log files and you can view
the errors there.
RAY HUNTER
- Original Message -
From: "Anil Garg"
ya i have tried that too..
wot else can be the problem.
my php.ini looks like this:
; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping
Mike wrote:
> Erik,
>
> thaks for the reply. I conducted a simple/rough benchmark to which is more
> expensive. I tested on a Intel PIII (450MHz 384MB ram) box running Win Xp,
> Apache 1.3.26 and PHP 4.2.1, and mysql 3.23.49 and freeBSD of similar stats
> (1000MHz, 1G ram). I used the adodb d
Like i said make sure the webserver has the privilege to write to the log
file...
S RAY HUNTER
email: [EMAIL PROTECTED]
www: http://www.venticon.com
aim: spinebl8d3
- Original Message -
From: "Anil Garg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PR
Thanks for the input. I wasn't considering the possibility of making a
new table for kids until now which seems pretty logic when trying to
save space. The only thing missing now is how to assign a unique
relation number for each kid/relative. That's 1 for the first born, 2
for the second one, etc
Hi,
sorry i forgot to mention that.
yes i restarted my webserver.
In fact the error messages are getting hidden(on setting display_errors =
Off) but the logs are not getting created:(log_errors =
/var/log/php-errors.log ) in php.ini file.
thanx
anil
--
PHP General Mailing Li
Ed, thanks for taking a look at this:
[eprice@media eprice]$ less public_html/testmail.php
a mail Test
Now, hopefully your message has been sent.";
print "The return value of mail() is " . (int)$return .
".\n";
?>
The results I get are:
Now, hopefully your messa
Also make sure that your webserver has write privileges to the file...
RAY HUNTER
- Original Message -
From: "Anil Garg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 10:57 AM
Subject: [PHP] display_error=Off in php.ini
> Hi,
>
> In php.ini file i have s
Did you restart your webserver after you made the change in php.ini? If
you didn't, make sure you restart it now. Restarting your webserver
should fix it.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Fri, 21 Jun 2002 12:57:34 -0400
"Anil Garg" <[EMAI
i downloaded php4.2.2dev and tried my codes on it. still giving me the
same problem.
Cc: is not been parsed correctly. so i changed to cc: and CC:
no errors thrown out this time. however, only the recipient specified in
To: managed to receive the email. the one specified under CC: never gets it
Please send code generating the problem.
> -Original Message-
> my sendmail problem is still present -- every time I try to call the
> "mail()" function, even with the simplest of arguments (the
> first three
> required arguments, all three of them simple string literals:
> mail('[EMA
Hi,
In php.ini file i have set:
display_errors = Off
log_errors = /var/log/php-errors.log
but i cant see anything coming in to php-errors.log file.
I have tried to change the query in my php code...but it dispays error on
the gui( the display errors doesnt seem to get off).
I hope someone can h
Erik,
thaks for the reply. I conducted a simple/rough benchmark to which is more
expensive. I tested on a Intel PIII (450MHz 384MB ram) box running Win Xp,
Apache 1.3.26 and PHP 4.2.1, and mysql 3.23.49 and freeBSD of similar stats
(1000MHz, 1G ram). I used the adodb database abstraction laye
Hi all,
I'm new in here and from Germany, so I hope I can make clear what my problem
is. I also didn't do too complicated things with php upto now. And the
problem I have at the moment is the following:
I have done a simple website as a frontend for changing the ".htaccess"- and
".htusers"-files
Try a recent dev-snapshot from snaps.php.net/win32. The mail function has
been reworked.
Christoph
Lance wrote:
> yes, the + is a whitespace. hm... a bug, you could be right on that.
>
> i dont have a copy of php4.2.1 on linux to test and see if it is just
> windows2k that is giving the problem
To be honest, I didn't know I could format the date within my query.
For some reason, I was under the assumption that since dates go into
MySQL in a specific format, that's how they came out.
Anyway, thanks for pointing this out to me! Very helpful.
Jason Soza
- Original Message -
Fro
FRUSTRATION.
I figured it was time to upgrade PHP anyway since I was using 4.1.2 and
then there's that Apache security problem, so I upgraded that too. And
my sendmail problem is still present -- every time I try to call the
"mail()" function, even with the simplest of arguments (the first
On Fri, Jun 21, 2002 at 11:03:30AM +0700, sonjaya wrote:
> I have capture serial port (pabx phone) ,and get the file dat like in
> attachement.
> 17/06/02 07:27:3008 00:00:59 437 2034224
> ... snip ...
> I want make screen lay out like this
> 17/06/02 437 2034224 00:00:59
have look at the function 'str_pad'
http://www.php.net/manual/en/function.str-pad.php
> -Original Message-
> From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
> Sent: vendredi 21 juin 2002 17:57
> To: 'Don'; php list
> Subject: RE: [PHP] Is there a replicate function in PHP
>
>
> I don't know i
yes, the + is a whitespace. hm... a bug, you could be right on that.
i dont have a copy of php4.2.1 on linux to test and see if it is just
windows2k that is giving the problem, or php4.2.1 is the main culprit.
but i did get the same piece of code to run on php4.0.6 on linux. it
runs smoothing
everything is in the subject :)
the error message on apache startup is:
"Invalid library (maybe not a PHP library) 'php_overload.dll'"
anyone had this problem ?
here is my phpinfo:
PHP Version 4.2.1
System Windows NT 5.0 build 2195
Build Date May 12 2002 23:51:56
Server API Apache
Virtual Dire
I don't know if the function exists, but it should be easy to create.
Something like this:
function replicate($Repeat, $RepeatCount)
{
$Results = "";
if ( ($RepeatCount < 1) or ($Repeat == "") )
return false;
for ($i=0; $i < $RepeatCount;$i++)
echo str_repeat("*", 50);
Don wrote:
> **
> This Message Was Virus Checked With : SAVI 3.58 May 2002
> Last Updated 14th June 2002
> **
>
> Hi,
>
> I'
On Friday, June 21, 2002, 4:40:00 PM, Lance wrote:
> yes, and it did show me whats wrong. but i have no idea why is that the
> case...
> 127.0.0.1 SMTPSVC1 RCPT - +TO:<[EMAIL PROTECTED]> 250
> 127.0.0.1 SMTPSVC1 RCPT - +TO: 501
> i don't understand why the Cc is been treated as a recipient in TO
hm... but isn't it weird to include the cc: recipient within to: and
then specifying them under cc: again?
cos wouldn't it be more straight forward just to simply include all the
recipient in cc: to to: and omit the cc: list.
and specifying the recipient that is suppose to be in Bcc: under To:
yes, and it did show me whats wrong. but i have no idea why is that the
case...
127.0.0.1 SMTPSVC1 RCPT - +TO:<[EMAIL PROTECTED]> 250
127.0.0.1 SMTPSVC1 RCPT - +TO: 501
i don't understand why the Cc is been treated as a recipient in TO:
Stuart Dallas wrote:
> On Friday, June 21, 2002, 4:01:44
Hi,
I'd like to print one or more specific characters many times. For example, let's say
I'd like to display the '*' 50 times on one line. Is there a function that will do
this? Something like:
? replicate('*',50);
Thanks,
Don
At 6/21/2002, you wrote:
>PS> What about execution time in ms (with breakpoints)?
>PS> And is there way to measure MySQL query speed in ms?
>
>u can use microtime function
>
> function getMicrotime()
> {
> list($usec, $sec) = explode(" ",microtime());
> return ((float)$usec
On Friday, June 21, 2002, at 11:19 AM, mike wrote:
> I was reading somewhere (can't remember where) that connecting to a db
> is a
> pretty costly transaction. DB queries aside, does anyone know of any
> benchmarks that demonstrate file access vs. db connections?
>
> Similarily, while DB quer
is there some kind of problem with output buffering in php 4.2.1.
i use ob_start() && ob_end_clean(), ob_get_contents() to capture output.
everything worked before and i don't know what could be the problem. my
upgrade was focused on xml/xslt stuff. any solution/similar problem?
> From: Lance <[EMAIL PROTECTED]>
>
> i tried that. using different email addresses. all of them are valid.
> still getting the same error. however, when i change the "Cc" to "cc",
> no error was thrown. but only the To: will receive the email. the Cc:
> never get the mail.
>
> any other thought
On Friday, June 21, 2002, 4:01:44 PM, Lance wrote:
> i tried that. using different email addresses. all of them are valid.
> still getting the same error. however, when i change the "Cc" to "cc",
> no error was thrown. but only the To: will receive the email. the Cc:
> never get the mail.
> any
I was reading somewhere (can't remember where) that connecting to a db is a
pretty costly transaction. DB queries aside, does anyone know of any
benchmarks that demonstrate file access vs. db connections?
Similarily, while DB queries offer alot of power, would it be cheaper
(faster) to drop simp
> Repeat of previous message in thread without the extra ugly wrapping, (sorry!!!)
Matthew Clark wrote:
Seeing as the mathematically correct way to round numbers is to round down
to n for n-1<=m<=n.5 and up to n+1 for n.5= 0.0)
return_val = floor(pow(10.0,places - DBL_DIG)) + 0.5 + re
Are you using a 404 error to generate those deeper
pages?
If so you will want to send an OK header:
header('HTTP/1.1 200 OK');
olinux
--- Andy <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I did recently launch my first web site and I am
> asking myself why google is
> only indexing the first pa
i tried that. using different email addresses. all of them are valid.
still getting the same error. however, when i change the "Cc" to "cc",
no error was thrown. but only the To: will receive the email. the Cc:
never get the mail.
any other thoughts on that?
Stuart Dallas wrote:
>
> That 501
Matthew Clark wrote:
> Seeing as the mathematically correct way to round numbers is to round down
> to n for n-1<=m<=n.5 and up to n+1 for n.5 round() function couldn't include a little 'fuzz' to handle the rounding
> problems we encounter due to floating point representation in the hardware?
>
1 - 100 of 142 matches
Mail list logo