Re: [PHP] Return mysql_fetch_array($result) from a function

2003-11-05 Thread David Otton
On Wed, 5 Nov 2003 14:53:15 +0800, you wrote: >I am trying to get the results of a function, which queries MySQL, back into >an array for me to order. I only want to print out certain fields (I call >the same query, but use different fields in different places). >Can someone perhaps show me how t

Re: [PHP] help with EVAL direct

2003-11-05 Thread j . sobotka
"Cpt John W. Holmes" wrote: > From: <[EMAIL PROTECTED]> > > > OS RedHat 9 and RedHat 7.2 > > Apache 1.3.27 and Apache 2 > > > > I have problem with direct eval, in version PHP4.2.2 is all OK > > in version PHP 4.3.3 -> direct eval bad > > > > here cut code > > > > $s = '$ret = ibase_execute($this-

[PHP] Building PHP source for Linux / Unix.

2003-11-05 Thread Ananth Kesari
Hi, I am a beginner to building PHP source code for Linux / Unix. I am looking for a document that takes me through a step-by-step guidelines of doing this. Can someone point to a link for this? Thanks, Ananth. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread Burhan Khalid
John Nichel wrote: Hey, I beat John Holmes That's me baby, quanity, not quality. ;) Yeah apparently it is :P -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Handling checkboxes that aren't checked!!!

2003-11-05 Thread Ford, Mike [LSS]
On 04 November 2003 20:43, Pablo Gosse contributed these pearls of wisdom: > On Tuesday, November 04, 2003 12:45 PM Kevin wrote: > > [snipped] >> How can I test for it without getting an error if it is not > checked?? > [/snipped] > > Hey Kevin. Use isset($var) to test if a var has been set. >

Re: [PHP] Building PHP source for Linux / Unix.

2003-11-05 Thread Chris Hayes
At 10:00 5-11-03, you wrote: Hi, I am a beginner to building PHP source code for Linux / Unix. I am looking for a document that takes me through a step-by-step guidelines of doing this. Can someone point to a link for this? did you find http://nl.php.net/manual/en/installation.php ? -- PHP Genera

[PHP] create a php timetable problem.

2003-11-05 Thread irinchiang
Hi all: A question to ask all PHP programmers out there... Right now I am doing a timetable system whereby in each cell, it will display a class code eg.3PE1234. But right now I want it to be in the way that I want the user to be able to add the class code to the table cell through a us

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread John W. Holmes
John Nichel wrote: Hey, I beat John Holmes You mean you're bigger than 14 inc... err, nevermind, you're talking about something else... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PH

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread Roger Spears
That is funny stuff..I often wonder why no one ever cracks jokes or makes a connection... John W. Holmes wrote: John Nichel wrote: Hey, I beat John Holmes You mean you're bigger than 14 inc... err, nevermind, you're talking about something else... -- PHP General Mailing List (ht

[PHP] Re: Instant timeout

2003-11-05 Thread Bogdan Stancescu
Do you have this problem (your PHP page times out) or do is this the desired result? For the latter, you've been answered, for the former it might be a core error in your code which PHP can't handle -- in this case the results are unpredictable, I typically get a "document contains no data" err

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread Marco Tabini
Probably because nobody wants to risk offending John--or (more likely) because no one will admit knowing who the "other" John Holmes is ;-) Cheers, Marco -- php|architect - The Magazine for PHP Professionals Try us free at http://www.phparch.com! Complete searchable PHP

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread Marek Kilimajer
I bet you did not have time because of your "other" activities. ;) John W. Holmes wrote: John Nichel wrote: Hey, I beat John Holmes You mean you're bigger than 14 inc... err, nevermind, you're talking about something else... -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Changing the php.ini file

2003-11-05 Thread Mike At Spy
I changed a value for max uploads in my php.ini file (linux box); I restarted apache, then the whole server, to get the new value to come up and, generally, take affect. Neither of those things did it. Does anyone know what I need to do to get the ini file re-read by the OS, or system, so that t

RE: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread Jay Blanchard
[snip] I bet you did not have time because of your "other" activities. ;) >> Hey, I beat John Holmes > > You mean you're bigger than 14 inc... err, nevermind, you're talking > about something else... [/snip] Aren't you dead? And have a movie? *ack* Wait, I know (wink, wink) you have seve

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Jay Blanchard
[snip] I changed a value for max uploads in my php.ini file (linux box); I restarted apache, then the whole server, to get the new value to come up and, generally, take affect. Neither of those things did it. Does anyone know what I need to do to get the ini file re-read by the OS, or system, so

[PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
Hi, Not sure if this is a PHP or Browser issue but here is my problem: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window

[PHP] Re: Changing the php.ini file

2003-11-05 Thread Bogdan Stancescu
Oh, yes, this is a big one, you must reset the whole state power grid. :) Simply restarting Apache should do it. Check if your problem doesn't come from somewhere else - how are you checking if the changes took effect? Also, are you sure you're editing the proper php.ini and not some older inst

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Mike At Spy
I do have that in my form, it is set to 15 megs. I set the server (php.ini) to allow 15 megs. Still can't get anything past 2 megs to upload. :\ Thanks for help, -Mike > -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 05, 2003 9:15 AM >

RE: [PHP] Re: Changing the php.ini file

2003-11-05 Thread Mike At Spy
I'll go double check to make sure I am hitting the right php.ini, but I think that is the only one the server reported with a 'whereis'. I am taking the data and writing it to a file, so the db isn't an issue. I'll mess with some of other settings and see what happens. :) Thanks, -Mike > >

Re: [PHP] Changing the php.ini file

2003-11-05 Thread Marek Kilimajer
post_max_size is another setting that has effect on uploads. It should be higher than upload_max_filesize. Mike At Spy wrote: I changed a value for max uploads in my php.ini file (linux box); I restarted apache, then the whole server, to get the new value to come up and, generally, take affect.

RE: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
Just a quick update: It seems to only be a problem with Internet Explorer on the PC. Both IE & Safari on MacOSX work as expected. -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Sessions withi

php-general Digest 5 Nov 2003 14:23:20 -0000 Issue 2397

2003-11-05 Thread php-general-digest-help
php-general Digest 5 Nov 2003 14:23:20 - Issue 2397 Topics (messages 168531 through 168554): Re: Mail Delivery Acknowledgement 168531 by: John Nichel Re: [Stats] PHP Net List: October 2003 168532 by: John Nichel 168537 by: Burhan Khalid 168541 by: John W. Hol

Re: [PHP] Changing the php.ini file

2003-11-05 Thread John W. Holmes
Mike At Spy wrote: I changed a value for max uploads in my php.ini file (linux box); I restarted apache, then the whole server, to get the new value to come up and, generally, take affect. Neither of those things did it. Does anyone know what I need to do to get the ini file re-read by the OS, or

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread John W. Holmes
Jay Blanchard wrote: Aren't you dead? And have a movie? Yes and Yes. Val Kilmer asked if he could play me and I gave him the go ahead... and, umm, PHP rocks. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.p

Re: [PHP] Sessions within new windows

2003-11-05 Thread John W. Holmes
Donald Tyler wrote: What's happening is that when the new window pops up, the script isn't getting the session info properly. I changed it so that the page opens up in the main window instead of a new one and it works fine. I presume this is because the browser is not sending the session ID to the

Re: [PHP] Changing the php.ini file

2003-11-05 Thread John W. Holmes
Marek Kilimajer wrote: post_max_size is another setting that has effect on uploads. It should be higher than upload_max_filesize. Make sure it isn't Apache doing the limiting, also. Some searching will tell you the setting, but Apache has a limit itself on the size of files it'll accept. -- --

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Mike At Spy
I re-checked the files - nothing I change in the php.ini files seems to take effect. How do I check apache? I saw the post_max_size thing and changed that to be equal to the upload_max_filesize. I'll make it a little higher. Outside of that, I have a cobalt raq4 I am working on with this, and

Re: [PHP] Sessions within new windows

2003-11-05 Thread Marek Kilimajer
Are you using _blank as target. Then try a named window. But this is just a wild guess. Donald Tyler wrote: Just a quick update: It seems to only be a problem with Internet Explorer on the PC. Both IE & Safari on MacOSX work as expected. -Original Message- From: Donald Tyler [mailto:[EM

Re: [PHP] Changing the php.ini file

2003-11-05 Thread Jason Wong
On Wednesday 05 November 2003 22:38, Mike At Spy wrote: > Outside of that, I have a cobalt raq4 I am working on with this, and the > php.ini file is here: > > /usr/local/bin/php.ini > > Any other place an ini file might be? I've certainly learned not to depend > on 'whereis' to list everything in

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Ford, Mike [LSS]
On 05 November 2003 14:39, Mike At Spy contributed these pearls of wisdom: > I re-checked the files - nothing I change in the php.ini > files seems to take > effect. How do I check apache? > > I saw the post_max_size thing and changed that to be equal to > the upload_max_filesize. I'll make it

RE: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
Yeah I was. I did try that though and it made no difference =0( -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:40 AM To: Donald Tyler Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions within new windows Are you using _blank as targ

[PHP] replace special chars

2003-11-05 Thread Victor Spång Arthursson
Are there any good function to replace special characters, for example double qoutes, with something that are more html-safe? For example: The above is generated with PHP and fetched from a database (postgresql). I'ld like to have the double qoutes replaced with "something else" ;) There cou

RE: [PHP] replace special chars

2003-11-05 Thread Jay Blanchard
[snip] Are there any good function to replace special characters, for example double qoutes, with something that are more html-safe? [/snip] http://www.php.net/str_replace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replace special chars

2003-11-05 Thread Pavel Jartsev
Victor Spång Arthursson wrote: Are there any good function to replace special characters, for example double qoutes, with something that are more html-safe? For example: The above is generated with PHP and fetched from a database (postgresql). I'ld like to have the double qoutes replaced with

[PHP] Load Stress tool

2003-11-05 Thread Luis Lebron
I am looking for suggestions on a tool to "load stress" a php application. We want to make sure that the application/web server will be able to handle the amount of users we expect. I have found a few but they seem to be very expensive. Can anyone suggestion an "affordable" and user friendly stress

RE: [PHP] Load Stress tool

2003-11-05 Thread Gregory Kornblum
[snip] I am looking for suggestions on a tool to "load stress" a php application. We want to make sure that the application/web server will be able to handle the amount of users we expect. I have found a few but they seem to be very expensive. Can anyone suggestion an "affordable" and user friendly

Re: [PHP] replace special chars

2003-11-05 Thread Victor Spång Arthursson
2003-11-05 kl. 16.07 skrev Pavel Jartsev: Try "htmlspecialchars()" and/or "htmlentities()". htmlentities() did it best! Thanks, /.v -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replace special chars

2003-11-05 Thread John W. Holmes
Victor Spång Arthursson wrote: Are there any good function to replace special characters, for example double qoutes, with something that are more html-safe? If only the PHP gods would bless us with a function such as htmlspecialchars() or maybe even htmlentities()... what a great world it would

RE: [PHP] Shared SessionIDs?

2003-11-05 Thread Guillaume Dupuis
I'll try the 'msession' road. Thanks again for everybody's input, Guillaume -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 6:36 PM To: Guillaume Dupuis; [EMAIL PROTECTED] Subject: Re: [PHP] Shared SessionIDs? --- Guillaume Dupuis <[EMA

Re: [PHP] Load Stress tool

2003-11-05 Thread Mike Migurski
>I am looking for suggestions on a tool to "load stress" a php >application. We want to make sure that the application/web server will be >able to handle the amount of users we expect. I have found a few but they >seem to be very expensive. Can anyone suggestion an "affordable" and user >friendly s

[PHP] dictionary

2003-11-05 Thread pete M
Got a bit of a peculiar problem. I'm recovering a hard disk which has got corrupted (work for a data recovery business). I've got a whole stack of text files which I need to clean up to try and get back some of the text information here's an example snippet YuR(I\aQMKNXe17lq~Pr?Xhb^~{ikiF..CIC

RE: [PHP] dictionary

2003-11-05 Thread Craig Lonsbury
are you using windows or *nix? There is a good dictionary (I think it is called dict) built into most *nix distros,and have yet to find a good dictionary for windows. maybe someone else knows a good one =) Craig > -Original Message- > From: pete M [mailto:[EMAIL PROTECTED] > Sent: Novem

Re: [PHP] dictionary

2003-11-05 Thread pete M
Linux ;- Craig Lonsbury wrote: are you using windows or *nix? There is a good dictionary (I think it is called dict) built into most *nix distros,and have yet to find a good dictionary for windows. maybe someone else knows a good one =) Craig -Original Message- From: pete M [mailto

[PHP] url_encode question

2003-11-05 Thread Styve Couture
Hi, I use urlencode to encode some adress in my application. I have notice a strange behavior that I cannot explaned by reading the docs for urlencode(). Those lines will explained what I want to say... $str_nomFichier = "http://"; .$GLOBALS["str_IpCW"] ."/records/".$path_salle ."/" .$path_d

[PHP] Java JSP and PHP script relation..??

2003-11-05 Thread Ryan A
Hi, Coming from a java JSP background I have a small question, in Java when you make a JSP, a servlet is created during execution and if you poke around the webserver you can actually find this servlet and read exactly what java reads before executing...is the same thing possible with php? In the

[PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Dimitri Marshall
Hi, I'm trying to allow users to upload files to my server. I have the appropriate code (I think) but I'm getting this error message. Can someone tell me why, and how to fix this? Warning: move_uploaded_file(/home/unit-dir/public_html/members/memberpix/dimitrihomel ess.gif): failed to open stream:

RE: [PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Pablo Gosse
On Wednesday, November 05, 2003 8:03 AM, Dimitri wrote: > I'm trying to allow users to upload files to my server. I have the > appropriate code (I think) but I'm getting this error message. Can someone > tell me why, and how to fix this? > > Warning: > move_uploaded_file(/home/unit- > dir/public_h

Re: [PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Marek Kilimajer
Web server need permission to write to /home/unit-dir/public_html/members/memberpix/ directory. Change the directory permissions to 777. Dimitri Marshall wrote: Hi, I'm trying to allow users to upload files to my server. I have the appropriate code (I think) but I'm getting this error message.

[PHP] Re: Java JSP and PHP script relation..??

2003-11-05 Thread Bogdan Stancescu
PHP is interpreted at runtime, I don't think it stores any such pre-parsed files, even for caching, anywhere else but in the memory. I might be wrong, but I've got a pretty strong gut feeling that's the way it goes. Bogdan Ryan A wrote: Hi, Coming from a java JSP background I have a small que

Re: [PHP] url_encode question

2003-11-05 Thread Marek Kilimajer
You want to use urlencode, but you are using url_encode, which must be user defined function. Urlencode output would be: http%3A%2F%2F192.168.10.5%2Frecords%2FSalle_16B%2F2003-05-06%2FSalle_16B_2003-05-06.010 urlencode is supposed to be used for encoding values and not the whole url. Styve Cout

Re: [PHP] dictionary

2003-11-05 Thread Lowell Allen
> Got a bit of a peculiar problem. > > I'm recovering a hard disk which has got corrupted (work for a data > recovery business). > > I've got a whole stack of text files which I need to clean up to try and > get back some of the text information > here's an example snippet > [snip] > > What I w

Re: [PHP] Return mysql_fetch_array($result) from a function

2003-11-05 Thread Chris Shiflett
--- Terence <[EMAIL PROTECTED]> wrote: > I am trying to get the results of a function, which queries MySQL, back > into an array for me to order. I only want to print out certain fields > (I call the same query, but use different fields in different places). > > This works is I print out the field

[PHP] PHP Documentation procedure

2003-11-05 Thread Ahbaid Gaffoor
Is there any utility that can be run against a php script to generate documentation of the functions in that script? Sort of like javadoc is for java code thanks Ahbaid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions within new windows

2003-11-05 Thread Chris Shiflett
--- Donald Tyler <[EMAIL PROTECTED]> wrote: > I have a site that has a members section. In the news area, when a user > clicks the link for an article, it pops open a new window a requests the > article via a PHP script. > > What's happening is that when the new window pops up, the script isn't >

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread zhuravlev alexander
On Wed, Nov 05, 2003 at 10:42:02AM -0600, Ahbaid Gaffoor wrote: > Is there any utility that can be run against a php script to generate > documentation of the functions in that script? > > Sort of like javadoc is for java code http://www.phpdoc.de/ http://phpdocu.sourceforge.

Re: [PHP] dictionary

2003-11-05 Thread Cesar Cordovez
To the original poster: The data you posted is not text. Or it has been encrypted. I don't think that the idea of the dictionary will work. Keep us posted with your findings! I'll love to see the conclusion. Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread Burhan Khalid
Ahbaid Gaffoor wrote: Is there any utility that can be run against a php script to generate documentation of the functions in that script? Sort of like javadoc is for java code Why do you mean phpdocumentor? http://pear.php.net/package/PhpDocumentor "The phpDocumentor tool is a standalone a

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread Boyan Nedkov
http://phpdocu.sourceforge.net/ http://www.callowayprints.com/phpdoc/ http://sourceforge.net/projects/phpdocu/ http://www.stack.nl/~dimitri/doxygen/ Ahbaid Gaffoor wrote: Is there any utility that can be run against a php script to generate documentation of the functions in that script? Sort

[PHP] Re: [PHP-DB] Unsuscribe

2003-11-05 Thread Boyan Nedkov
try to do this here: http://www.php.net/mailing-lists.php [EMAIL PROTECTED] wrote: Unsubscribe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Shared SessionIDs?

2003-11-05 Thread Chris W. Parker
John W. Holmes on Tuesday, November 04, 2003 6:07 PM said: > I think you missed the part where he said "while keeping secure"... :) > > Storing something like this in a cookie is in no way secure. Hey man! That's why I put the disclaimer... >> Here's an idea (whet

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Mike At Spy
Bingo. I didn't even notice that the phpinfo was saying the ini file was in a different directory than the one I was looking at. So much for 'whereis' - again. :\ :) Thanks! -Mike > -Original Message- > From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 05,

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Jay Blanchard
[snip] Bingo. I didn't even notice that the phpinfo was saying the ini file was in a different directory than the one I was looking at. So much for 'whereis' - again. :\ [/snip] >From the command line Mike try 'locate php.ini' (drop the quotes). You'll be surprised at what you might see. -- PHP

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
That's strange, as I've been writing a CMS over the past year which requires the user to have IE 5.5 or newer, and I have no problems with pop-ups accessing session values under IE 6.0. Perhaps it's an issue of how you're invoking the new windows? Are you using a normal link with target="_blank"

Re: [PHP] Shared SessionIDs?

2003-11-05 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > But seriously, why is it such a bad idea? I'd like to finally figure > this out so I don't keep coming up with them (not that I've ever used > any). ;) I've got to remember back to what the original thread was about... :) The suggestion, iirc, was to

RE: [PHP] Shared SessionIDs?

2003-11-05 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > But seriously, why is it such a bad idea? I'd like to finally figure > this out so I don't keep coming up with them (not that I've ever used > any). ;) I have a free chapter that explains cookies at the protocol level here: http://shiflett.org/bo

RE: [PHP] Load Stress tool

2003-11-05 Thread Luis Lebron
Thanks for the information. I also found the MS Web Application Stress Tool which may work http://www.microsoft.com/technet/treeview/default.asp?url=/technet/itsolutio ns/intranet/downloads/webstres.asp -Original Message- From: Mike Migurski [mailto:[EMAIL PROTECTED] Sent: Wednesday, Nove

[PHP] Apache1.3.28 vs PHP4.3.3

2003-11-05 Thread orlandopozo
Apache 1.3.28 / PHP 4.3.3 hello, I tried to configure php as module SAPI of the apache web server, I put this line: LoadModule php4_module D:/PHP4.3.3/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php When I tested the configuration, I got this error: Cannot remove

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread Ahbaid Gaffoor
Thank you! Just what I needed. Ahbaid Boyan Nedkov wrote: http://phpdocu.sourceforge.net/ http://www.callowayprints.com/phpdoc/ http://sourceforge.net/projects/phpdocu/ http://www.stack.nl/~dimitri/doxygen/ Ahbaid Gaffoor wrote: Is there any utility that can be run against a php script to

Re: [PHP] Apache1.3.28 vs PHP4.3.3

2003-11-05 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Apache 1.3.28 / PHP 4.3.3 hello, I tried to configure php as module SAPI of the apache web server, I put this line: LoadModule php4_module D:/PHP4.3.3/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php When I tested the configuration, I got thi

[PHP] Site Security

2003-11-05 Thread Shaun
Hi, I have created a site that allows users to schedule staff, make appointments etc. Users must log in to use the site and the users data is held in the Users table of the MySQL database. However, due to the nature of the site I need to make sure it is 110% secure against hacks etc. Now I know th

RE: [PHP] Site Security

2003-11-05 Thread Dan Joseph
Hi, > I have created a site that allows users to schedule staff, make > appointments > etc. Users must log in to use the site and the users data is held in the > Users table of the MySQL database. However, due to the nature of > the site I > need to make sure it is 110% secure against hacks etc.

Re: [PHP] Site Security

2003-11-05 Thread Chris Shiflett
--- Shaun <[EMAIL PROTECTED]> wrote: > However, due to the nature of the site I need to make sure it is 110% > secure against hacks etc. Now I know this isn't actually possible That's a very good thing to realize. Security is a measurement, sort of like temperature, so saying something is 100% sec

[PHP] simple?

2003-11-05 Thread Jason
Hello all, I have written a script for the purpose of uploading an image and block of text for a site. Real simple stuff but I can't get the form to write? code looks like this... I have some error checking above this but the meat of it still doesn't work. I get: Parse error: parse error in /

Re: [PHP] simple?

2003-11-05 Thread Rolf Brusletto
Jason wrote: Hello all, I have written a script for the purpose of uploading an image and block of text for a site. Real simple stuff but I can't get the form to write? code looks like this... I have some error checking above this but the meat of it still doesn't work. I get: Parse error: parse

Re: [PHP] simple?

2003-11-05 Thread Burhan Khalid
Jason wrote: [ snip ] Parse error: parse error in /var/www/html/site/directory/subdirectory/upload.php on line 68 in the upload.php file there are only 64 or so lines of code. HELP! Check for missing ; Check for proper nesting of } Check for proper nesting of ) Cut and paste your code in a php-a

[PHP] High bandwidth application tips

2003-11-05 Thread Luis Lebron
I have been coding php for a few years now, but I haven't build a "high bandwidth" application. I am currently working on an application for a customer that may have a very large amount of users (10,000 or more according to the customer). Are there any good reference books, articles and general in

RE: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
I am using a normal link. Here is the exact html code: -Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:17 AM To: [EMAIL PROTECTED]; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows That's strange, as I'v

Re: [PHP] High bandwidth application tips

2003-11-05 Thread Chris Shiflett
--- Luis Lebron <[EMAIL PROTECTED]> wrote: > I am currently working on an application for a customer that may have > a very large amount of users (10,000 or more according to the customer). I currently design, develop, and maintain a suite of Web applications and utilities that receive ten million

Re: [PHP] High bandwidth application tips

2003-11-05 Thread Marco Tabini
Chris Shiflett wrote: I currently design, develop, and maintain a suite of Web applications and utilities that receive ten million hits a day, and my experience has shown that the number one thing you can do to make the biggest difference is to limit the number of times you need to hit the database

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Jay Blanchard
[snip] > limit the number of times you need to hit the database. > I second Chris on this. [/snip] I third that. The problem can become especially apparent in large databases containing millions of records. Other than that just code cleanly and document, document, document. -- PHP General Mailin

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Luis Lebron
One of the things I have suggested to the customer is offloading some of the work to a different server. For example, he wants to email a weekly message to all the users with information on records that match their search criteria. I suggested setting up a second server that handles this and other

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
Hmm, that's strange. I use Javascript functions to control the few pop-up windows in the CMS, but I just went in and changed some to standard href tags with the _blank for the target attribute, as you have, and it still works with no problem. If, as Chris wrote, this is indeed a feature/bug o

FW: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
-Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:11 PM To: Donald Tyler Subject: RE: [PHP] Sessions within new windows Hmm, that's strange. I use Javascript functions to control the few pop-up windows in the CMS, but I just went in

RE: [PHP] Sessions within new windows

2003-11-05 Thread Chris Shiflett
--- Pablo Gosse <[EMAIL PROTECTED]> wrote: > If, as Chris wrote, this is indeed a feature/bug of IE, then it must be > configurable somewhere, though I'm lost as to where that might be. I have no first-hand experience with this, since I don't use Windows (and I use Safari when I use Macs). But, th

[PHP] getting array slice of function output

2003-11-05 Thread David T-G
Hi, all -- I have a line which strips the suffix (gif, GIF, TIFF, jpg, JPEG, etcetc or I would just use basename() :-) from a string but it seems needlessly drawn out: $file = preg_split('/\./',$dirfiles[0]) ; $file = $file[0] ; I would like to just assign the 0th element of the preg_split() o

Re: [PHP] getting array slice of function output

2003-11-05 Thread Mike Migurski
>I have a line which strips the suffix (gif, GIF, TIFF, jpg, JPEG, etcetc >or I would just use basename() :-) from a string but it seems needlessly >drawn out: > > $file = preg_split('/\./',$dirfiles[0]) ; $file = $file[0] ; > >I would like to just assign the 0th element of the preg_split() output

Re: [PHP] simple?

2003-11-05 Thread Marek Kilimajer
return (ereg_replace('/+', '/', $tmp_file ==$filename)); Jason wrote: Hello all, I have written a script for the purpose of uploading an image and block of text for a site. Real simple stuff but I can't get the form to write? code looks like this... I have some error checking above this but the

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
On Wednesday, November 05, 2003 12:38 PM, Chris wrote: > I would also be interested in this, as well as some sort of confirmation > of this behavior. It could be that the person who described this behavior > was wrong. :-) I think Chris is correct in thinking that the person who started the previ

RE: [PHP] Sessions within new windows

2003-11-05 Thread Chris W. Parker
Pablo Gosse on Wednesday, November 05, 2003 3:08 PM said: > From my experience over the past few years, here's how IE works with > sessions and new windows. [snip Pablo's experience] Your description is the way I understand it. Chris. -- Don't like reformatting

[PHP] Input Validation of $_SESSION values

2003-11-05 Thread Pablo Gosse
Hi all. A quick question as an extension to the threads about input validation over the past weeks. It's obviously best practice to rigorously check and validate all input coming via $_GET or $_POST, but what about $_SESSION values? Without proper checking of $_GET and $_POST, it is very easy fo

[PHP] REPOST TO FIX MANGLED QUERY - Input validation of $_SESSION values

2003-11-05 Thread Pablo Gosse
Hi all. Sorry for the repost but the query got seriously mangled in the previous post. A quick question as an extension to the threads about input validation over the past weeks. It's obviously best practice to rigorously check and validate all input coming via $_GET or $_POST, but what about $_

Re: [PHP] Apache1.3.28 vs PHP4.3.3

2003-11-05 Thread Boyan Nedkov
For getting up and running php on WinXX box you need only: LoadModule php4_module D:/PHP4.3.3/sapi/php4apache.dll AddType application/x-httpd-php .php To avoid the problem with removing 'mod_php4.c' try to find 'ClearModuleList' directive in httpd.conf and comment it, then restart the server onc

[PHP] anyway to return more than one value?

2003-11-05 Thread Chris W. Parker
Hi list. Ok I know it's not possible to "return" more than one value. But I'm going to explain what I'd like to do so maybe there's an easy way to do it. I've got some functions that query a database and turn the result into an array and return that array. What I'd like to do is not only return t

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Robert Cummings
On Wed, 2003-11-05 at 19:02, Chris W. Parker wrote: > Hi list. > > Ok I know it's not possible to "return" more than one value. But I'm > going to explain what I'd like to do so maybe there's an easy way to do > it. > > I've got some functions that query a database and turn the result into > an a

RE: [PHP] anyway to return more than one value?

2003-11-05 Thread Chris W. Parker
Robert Cummings on Wednesday, November 05, 2003 4:07 PM said: > You can do the following: > > function get_results( &$rows, &$fields ) Works great! Thanks. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/o

RE: [PHP] fwrite, fopen, or fread limit?

2003-11-05 Thread Wouter van Vliet
I highly doubt that was all. Now uploads bigger than 7megs are allowed, you should also make sure your script is able to deal with it files LARGER than that. Hmm, maybe this didn't seem to make much sense. What I'm talking about is this: memory_limit = 8M ; Maximum amount of memory

[PHP] PHP objects problem

2003-11-05 Thread Michal O¹kera
Hi, I've discovered strange behavior of PHP. The following script has no sense and value, it is simplified due to clearness. The output of the script should be (in my opinion): class A2 class A1 But it isn't (using PHP 4.3.4). The problem arise, when the Callback function of a1 object calls GetOt

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Boyan Nedkov
One possible solution could be to write a simple class that will hold all data you need at one single place: class MyData { var $_resultArray; var $_rows; var $_fields; function MyData($resultArray, $rows, $fields) { $this->data = $data; $this->rowcounr = $rowcount; $this->fil

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread John W. Holmes
Chris W. Parker wrote: Ok I know it's not possible to "return" more than one value. But I'm going to explain what I'd like to do so maybe there's an easy way to do it. I've got some functions that query a database and turn the result into an array and return that array. What I'd like to do is not o

Re: [PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Dimitri Marshall
Wicked... Works, thanks. Dimitri Marshall "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Web server need permission to write to > /home/unit-dir/public_html/members/memberpix/ directory. Change the > directory permissions to 777. > > Dimitri Marshall wrote: > > >

  1   2   >