[PHP] emailing html file

2002-06-21 Thread M.E. Suliman
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

Re: [PHP] OSX + Apache + PHP + MySQL

2002-06-21 Thread Michael Zornek
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

Re: [PHP] Accessing a form variable before the form is posted

2002-06-21 Thread Ma Siva Kumar
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

Re: [PHP] Resoltuion

2002-06-21 Thread Justin French
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:

[PHP] Weird error!!

2002-06-21 Thread Pag
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

Re: [PHP] OSX + Apache + PHP + MySQL

2002-06-21 Thread Joshua Alexander
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

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Tom Rogers
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

Re[2]: [PHP] some one PLEASE help me!

2002-06-21 Thread Julie Meloni
>>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

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Tom Rogers
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

[PHP] PHP 4.2.1 reading PAM/Shadowed password

2002-06-21 Thread Matthew Nock
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

Re: [PHP] Architecture problem? Google want index files exept the main page.

2002-06-21 Thread olinux
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

RE: [PHP] mass sql update array

2002-06-21 Thread John Holmes
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 > >

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Billy S Halsey
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 | |

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Patrick Aland
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

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Billy S Halsey
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

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Patrick Aland
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

[PHP] Re: recommend any good learning books

2002-06-21 Thread Manuel Lemos
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

[PHP] mass sql update array

2002-06-21 Thread Daniel Hoffman
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

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Billy S Halsey
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

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Rasmus Lerdorf
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

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Patrick Aland
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

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Rasmus Lerdorf
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

[PHP] Upgraded and now apache just dies

2002-06-21 Thread Patrick Aland
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

RE: [PHP] recommend any good learning books

2002-06-21 Thread César Aracena
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

[PHP] Emulating HTTP File Uploads

2002-06-21 Thread Georgie Casey
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]

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Tom Beidler
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

Re: [PHP] addslashes

2002-06-21 Thread Chris Shiflett
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

Re: [PHP] imap support breaking...

2002-06-21 Thread Danny Shepherd
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

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Chris Shiflett
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

Re: [PHP] recommend any good learning books

2002-06-21 Thread Chris Shiflett
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

Re: [PHP] addslashes

2002-06-21 Thread Nick Wilson
-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

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Richard Baskett
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.

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Nick Wilson
-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

[PHP] header("Location with & in URL

2002-06-21 Thread Tom Beidler
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

[PHP] addslashes

2002-06-21 Thread OMAR IGNACIO CAMPOS GALAN
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

[PHP] Very slow pg access

2002-06-21 Thread Uros Gruber
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

Re: [PHP] getting anchor tags

2002-06-21 Thread Kevin Stone
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

[PHP] Re: any reason why mail() returns a false value?

2002-06-21 Thread Manuel Lemos
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 >

RE: [PHP] getting anchor tags

2002-06-21 Thread Boaz Yahav
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

[PHP] getting anchor tags

2002-06-21 Thread Nick Wilson
-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

[PHP] recommend any good learning books

2002-06-21 Thread paulson
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

[PHP] setcookie(), logout

2002-06-21 Thread Pushkar Pradhan
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

Re: [PHP] Architecture problem? Google want index files exept the main page.

2002-06-21 Thread Andy
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

Re: [PHP] mod_mm problems now....

2002-06-21 Thread Rasmus Lerdorf
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 >

Re: [PHP] mod_mm problems now....

2002-06-21 Thread Ray Hunter
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

[PHP] mod_mm problems now....

2002-06-21 Thread Rick Kukiela
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

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
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

Re: [PHP] Scree Resolution

2002-06-21 Thread Chris Hewitt
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

Re: [PHP] Resoltuion

2002-06-21 Thread Rodolfo Gonzalez
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

RE: [PHP] tracing include

2002-06-21 Thread Johnson, Kirk
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

[PHP] Application level logging module

2002-06-21 Thread Purushotham Komaravolu
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

[PHP] tracing include

2002-06-21 Thread Tigran Nazaryan
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

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Rick Kukiela
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

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Rick Kukiela
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

Re: [PHP] Scree Resolution

2002-06-21 Thread Duncan Hill
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. -

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Ray Hunter
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

[PHP] Resoltuion

2002-06-21 Thread Edgar
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

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Rick Kukiela
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

[PHP] Scree Resolution

2002-06-21 Thread Edgar
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

[PHP] Log files.

2002-06-21 Thread James E. Hicks III
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

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Ray Hunter
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!

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Michael Sweeney
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"

[PHP] some one PLEASE help me!

2002-06-21 Thread Rick Kukiela
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

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Ray Hunter
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"

Re: [PHP] php.ini not creating logs

2002-06-21 Thread 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

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread George Whiffen
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

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Ray Hunter
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

RE: [PHP] Re: ARRAY, IF & INSERT

2002-06-21 Thread César Aracena
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

[PHP] php.ini not creating logs

2002-06-21 Thread Anil Garg
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

Re: [PHP] any reason why mail() returns a false value?

2002-06-21 Thread Erik Price
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

Re: [PHP] display_error=Off in php.ini

2002-06-21 Thread Ray Hunter
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

Re: [PHP] display_error=Off in php.ini

2002-06-21 Thread Tyler Longren
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

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
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

RE: [PHP] any reason why mail() returns a false value?

2002-06-21 Thread Lazor, Ed
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

[PHP] display_error=Off in php.ini

2002-06-21 Thread Anil Garg
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

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
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

[PHP] problems with .htaccess - crypt-passwords doesn't mach

2002-06-21 Thread Stephan Huebner
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

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Christoph Grottolo
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

Re: [PHP] Stumped on a function

2002-06-21 Thread Jason Soza
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

[PHP] any reason why mail() returns a false value?

2002-06-21 Thread Erik Price
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

Re: [PHP] Script text

2002-06-21 Thread Analysis & Solutions
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

RE: [PHP] Is there a replicate function in PHP

2002-06-21 Thread phpsurf
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

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
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

[PHP] overload extension doesn't load on PHP 4.2.1 + win2k

2002-06-21 Thread phpsurf
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

RE: [PHP] Is there a replicate function in PHP

2002-06-21 Thread Lazor, Ed
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++)

Re: [PHP] Is there a replicate function in PHP

2002-06-21 Thread Neil Freeman
echo str_repeat("*", 50); Don wrote: > ** > This Message Was Virus Checked With : SAVI 3.58 May 2002 > Last Updated 14th June 2002 > ** > > Hi, > > I'

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas
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

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
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:

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
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

[PHP] Is there a replicate function in PHP

2002-06-21 Thread Don
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

Re: [PHP] Speed tests? RAM usage displays?

2002-06-21 Thread Pekka Saarinen
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

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread Erik Price
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

[PHP] output control functions

2002-06-21 Thread Aljosa Mohorovic
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?

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lowell Allen
> 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

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Stuart Dallas
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

[PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-21 Thread mike
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

[PHP] Re: Rounding....Message repeated

2002-06-21 Thread George Whiffen
> 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

Re: [PHP] Architecture problem? Google want index files exept the main page.

2002-06-21 Thread olinux
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

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Lance
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

[PHP] Re: Rounding....

2002-06-21 Thread George Whiffen
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   2   >