Re: [PHP] who can give me a article about begining Regular expression?

2001-08-23 Thread Pavel Jartsev
liufeng wrote: thanks! i want to learn Regular expression. http://www.php.net/manual/en/pcre.pattern.syntax.php -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Scripts..flatfile

2001-08-23 Thread ReDucTor
Hello everyone, What scripts do you know of or have made that store all there information in a file(flatfile d/b), that use php, and will allow someone to setup a system for hosting these scripts(if its your script and you want your ads there, tell me), this is just so i can have a few

Re: [PHP] Re: imagemagick and file size

2001-08-23 Thread Ben-Nes Michael
Yep, I know. I just wrote the function as a general description. thanks for the tip on strlen, thats what I need. - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 2:01 AM Subject: [PHP] Re: imagemagick and file size

Re: [PHP] Sorting IP Address Data

2001-08-23 Thread David Robley
On Thu, 23 Aug 2001 12:58, Chris Aitken wrote: Hi all, Just a quick one, I am pulling a whole Class C list of IP addresses, and im trying to sort them in order, but im getting it displayed 127.0.0.1 127.0.0.10 127.0.0.100 127.0.0.101 127.0.0.102 etc. Is there any other way to sort

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-23 Thread Martin Hughes
Thanks everyone for the help!!! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: someone please explain weird getforeignkeys

2001-08-23 Thread Caleb Carvalho
Hi all, I've just install php-4.0.6 in my linux machine, but am not familiar with the syntax, How good is php in terms of managing database (sybase) data compare to Java? I mean to display on the web? Thanks, Caleb Carvalho Application Engineer Tier 1 CSO Europe LoadRunner/APM

Re: [PHP] Sorting IP Address Data (oops!)

2001-08-23 Thread Steve Edberg
And if the numbers are from different subnets, you could sort like so (assuming addresses are in a 1-dimensional array, here called $IpAddresses): function sort_address($IpAddresses) { $List = array(); foreach ($IpAddresses as $A) { list($x,$y,$z,$t) = explode('.', $A);

[PHP] numrows

2001-08-23 Thread Martin Kampherbeek
What's wrong with this? I get the error: Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site49/web/vragen/vragen.php on line 42 $query = SELECT * FROM question WHERE answer'1' AND id250 ORDER BY id DESC; $result = MYSQL_QUERY($query); $number =

Re: [PHP] numrows

2001-08-23 Thread Chris Fry
Should be ORDER BY ID, DESC Chris Martin Kampherbeek wrote: What's wrong with this? I get the error: Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site49/web/vragen/vragen.php on line 42 $query = SELECT * FROM question WHERE answer'1' AND id250 ORDER BY id

Re: [PHP] Re: force download in IE -- conclusion

2001-08-23 Thread Tom Rogers
Hi This is the way I force save prompt on .html files .maybe useful (only tested on ie) looks wierd but it works :) ? if(isset($filename)): $headertxt = Content-Disposition: attachment; filename=\.$filename.\; header(Content-Type: application/force-download);header($headertxt);

RE: [PHP] Concept of Templates

2001-08-23 Thread Navid Yar
But how? Are there any examples that I can take a look at somewhere? I would love to see some. I've always wondered about how the links work to trigger the template creation. Are there any samples or tutorials of that online? Usually all I see is how the templates are created, but nothing of how

[PHP] Deny access without password to the web site

2001-08-23 Thread Sunil Jagarlamudi
Hello, How do you let the entire web site be password protected and require a user to use a password when the password entry part is on a secure web server and the other part is on a regular http port. For example when I type http://foo.com it will forward me to https://foo.com for the password

Re: [PHP] numrows

2001-08-23 Thread Steve Brett
i'd have a look at the table structure. also if you're using to denote inequality then use != both of the previous posts are incorrect Steve Chris Fry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Should be ORDER BY ID, DESC Chris Martin Kampherbeek

[PHP] It's just a logo..

2001-08-23 Thread Wisam
Do you know What's a logo worth: PRICELESS. Do you have a logo ? Do you have what it takes to design one ? To do it in Flash ? Do you heve what it takes to put it on your website ? on your stationery Business card ? On literally hundreds of products ? Do you have what it takes to make it 3D,

Re: [PHP] numrows

2001-08-23 Thread Raphael Pirker
Hi Chris, FYI: Chris Fry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Should be ORDER BY ID, DESC actually it shouldn't be this way, since DESC is an option of the ORDER BY command meaning DESC... ORDER BY [column] [ASC | DESC] (ASC is default) so the

Re: [PHP] numrows

2001-08-23 Thread Chris Fry
Sorry - it's late! I knew that he said. Raphael Pirker wrote: Hi Chris, FYI: Chris Fry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Should be ORDER BY ID, DESC actually it shouldn't be this way, since DESC is an option of the ORDER BY command meaning

[PHP] Re: numrows

2001-08-23 Thread Raphael Pirker
hehe, I just figured that you can use both... with and without the '_'. sorry for messing this up. the one with the _ is actually featured in the documentation, while my code keeps getting shorter over time because of lazyness :) Raphael Pirker [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] numrows

2001-08-23 Thread Raphael Pirker
better late than never :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: It's just a logo..

2001-08-23 Thread Raphael Pirker
Do you know What's a logo worth: PRICELESS. so how come you're putting a price on it then? Do you have a logo ? you bet Do you have what it takes to design one ? To do it in Flash ? yup Do you heve what it takes to put it on your website ? on your stationery Business card ? On literally

Re: [PHP] How can I insert the data into the begining of a text file

2001-08-23 Thread Christian Reiniger
On Wednesday 22 August 2001 18:14, Zenith wrote: I have try this but, PHP just overwrite the prevoius content, and write the new message into the file. But I want to INSERT the new message into the head of a file. You actually have to read everything, insert the line, write everything.

[PHP] File upload problem

2001-08-23 Thread A.D. Vijverberg
Hello there, I am trying to create a form for uploading files to the local intranet. Therefore I created a form for uploading files as mentioned in the PHP manual. After submitting the form I want to copy the file to the intranet with as name the original name on the system of the client. The

Re: [PHP] Mutiline read as Sigle Line!

2001-08-23 Thread Justin French
Jack wrote: I want the browser could display exactly the same as the user input! even the lines and format! For a browser to display line breaks, a new line isn't enough, it needs a BR tag. there is a function called nl2br() [new-line-to-break] which does this: $text = [your file read in];

Re: [PHP] Script timeout

2001-08-23 Thread Christian Reiniger
On Wednesday 22 August 2001 17:59, Julian Wood wrote: I have a script which has to do a *lot* of work. In fact, it times out after 300 seconds, but is only about half done at that point. So I tried using set_time_limit(0) to no avail (php is *not* running in safe mode). So next I tried this

Re: [PHP] HTTP headers and include()

2001-08-23 Thread Christian Reiniger
On Thursday 23 August 2001 02:36, Casteele/ShadowLord wrote: Andy [EMAIL PROTECTED] wrote in article See if is there some kind of echo before header()s, or HTML sent to browser. No, I've been extremely careful to avoid that. The following are the two test files I've been using to try

Re: [PHP] Sorting IP Address Data

2001-08-23 Thread Tom Rogers
one solution that works on all ip numbers ? $ip = array(192.168.132.3,192.168.132.2,0.0.0.1,192.168.132.4,192.168.1.1,192.168.0.1); foreach($ip as $val){ $split = explode(.,$val); $num = (16777216 * $split[0]) + (65536 * $split[1]) + (256 * $split[2]) + $split[3];

[PHP] I get headers already sent by error each time I use setcookie function

2001-08-23 Thread Ha Minh NGUYEN
Hi, I don't know why I get : Warning: Cannot add header information - headers already sent by (output started at c:\windows\bureau\cookie1.php:2) in c:\windows\bureau\cookie1.php on line 6 message each time I use setcookie function. The second line is : ?php I put html at the end of the file.

[PHP] sybase on linux RH 7.1?

2001-08-23 Thread Caleb Carvalho
has any1 installed sybase on linux RH 7.1? where can i get a good manual? am getting errors trying to ./startserver -f ./RUN_SYBASE Caleb Carvalho Application Engineer Tier 1 CSO Europe LoadRunner/APM -

[PHP] Re: numrows

2001-08-23 Thread Johannes Janson
Hi, $query = SELECT * FROM question WHERE answer'1' AND id250 ORDER BY id DESC; $result = MYSQL_QUERY($query); add or die(mysql_error()) see what MySQL doesn't like about the query. cheers johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] php/mysql install on Win2k

2001-08-23 Thread Wolfgang Schneider
Hi, as a bit of a newbie with PHP and Win2k, I've succesfully installed and used php on my Win2k computer for testing web pages etc locally on my computer and not having to upload things to the server of my ISP. Everything runs fine ... so it seems. Today then, I just installed a mysql

[PHP] Removing files from a directory

2001-08-23 Thread Niklas Lampén
I'm trying to remove files from a directory. I have this code to do it: This code is in a included file located at '/map/'. File including this code is located at '/'. Files to be removed are located at '/map/'. $Handle = opendir('map/'); while ($file = readdir($Handle)) { if (substr($file,

[PHP] mcrypt trouble, still

2001-08-23 Thread Dominic Schanen
Well, in response to my previous post and its reply, the server administrator tried reinstalling mcrypt and did the testing during the install and it all seemed to work for him there. However, I still get the error: Warning: mcrypt module initialization failed So, now my question is this. In

RE: [PHP] Script timeout

2001-08-23 Thread Dave
flush is your friend -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 5:42 AM To: Julian Wood; [EMAIL PROTECTED] Subject: Re: [PHP] Script timeout On Wednesday 22 August 2001 17:59, Julian Wood wrote: I have a script which has to

RE: [PHP] Removing files from a directory

2001-08-23 Thread Niklas Lampén
Solved it by myself. :) unlink($file); needs to be *exact* address to the file to be unlinked like /www/dir/map/$file. Just in case if someone else meets this problem! Niklas -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 23. elokuuta 2001 15:17 To:

[PHP] Shell version of php

2001-08-23 Thread Tom Carter
Hi guys, This arose trying to install php-egg, altho thats not what this msg is really about. For it to run I need to have a shell version running... what exactly is this and how do I go about installing it? I have php installed (I think) as a module.. and by my understanding this is necessary

Re: [PHP] Shell version of php

2001-08-23 Thread Nick Davies
Just compile it without the apache stuff on configure. Then you should have a working php executable in /usr/bin/. All you need to do then is php script.php or put the #!/usr/bin/php at the head of your scripts. (/usr/bin/php -q removes the http headers) Nick. On Thu, 23 Aug 2001, Tom Carter

RE: [PHP] Problems compiling with Apache 2.0 Alpha 22

2001-08-23 Thread Mark Roedel
-Original Message- From: The Doctor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 10:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Problems compiling with Apache 2.0 Alpha 22 Can anyone explain what I am getting this? [snip] checking for Apache 2.0 module

[PHP] multiple select statement

2001-08-23 Thread Natasha
hi, i want to know how i can get all selected values of a multiple select statement using $HTTP_POST_VARS thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Re: multiple select statement

2001-08-23 Thread Hugh Bothwell
Natasha [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi, i want to know how i can get all selected values of a multiple select statement using $HTTP_POST_VARS The name of your select must be an array, ie select name='myvar[]' multiple optionA

[PHP] upload binary using postgres

2001-08-23 Thread Ben-Nes Michael
Hi Im using php to upload Binary data into bytea field in postgres DB. The problem is that when I query what I uploaded I discover that it hold only 13 characters and not the whole binary file I tried manual insert more then 13 characters successfully. I tried to do addslashes($data); but

[PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread John Bass
Hi All, I am trying to generate a table with two columns. Each column should print 2 fields named image_link and web_url. Have spent over week looking documentations and trying different coding but nothing is working. Any help will be greatly appreciated. TABLE ?php $query = SELECT

[PHP] OCI8 on PHP 4 Windows

2001-08-23 Thread Ridai Govinda Pombo \(Engenharia BSB\)
I need to put on the php_oci8.dll to run. My Platform: Win2k Advanced Server IIS 5.0 PHP 4.0.6 as an CGI (php.exe) The error it returns: X-Powered-By: PHP/4.0.6 Content-type: text/html PHP Warning: Unable to load dynamic library 'C:\Inetpub\PHP\extensions\php_oci8.dll' - The

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread Jeff Lewis
John, Try this: TABLE ?php $query = SELECT image_link, web_url FROM testdata; $result = mysql_query ($query) or die (Query Failed); while ($row = mysql_fetch_object ($result)) { printf (trTD.$row-image_links.br.$row-web_url./TD TD.$row-image_link.br.$row-web_url./tr\n); } ? /TABLE -

Re: [PHP] Re: The future of PHP

2001-08-23 Thread Christopher CM Allen
Greetings Php'ers: 2 cents bahh to servelts-asp these are new kids on the block. Template this or that, it doesnt matter, most templates are for lazy peeps anyways :) , a solid base of people have been using phtml-php for years. It doesnt matter to me what the e-zines say about which is more

Re: [PHP] multiple select statement

2001-08-23 Thread Andrey Hristov
in HTML select name=availabilities[] size=4 multiple class=tfld /select in PHP code var_dump($HTTP_POST_VARS['availabilities']; Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: Natasha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] conf file access on host server

2001-08-23 Thread Diane Mulberry
hi, i'm a relative new comer to php and was wondering if someone could give me some advice on hosting. specifically, access to my own conf file, and whether this is entirely necessary. Does not having access to your own conf limit what you can do in php in any way? also, if you have compiler

[PHP] Cannot index a string index - Why?

2001-08-23 Thread torek
hi, is there an error in this script?: if ($var){ $tmp = explode(|,$vars); for ($i = 0; $i sizeof($tmp); $i++){ $struct[$i] = array(); $tmp2 = explode(||,$tmp[$i]); for ($j = 0; $j sizeof($tmp2);$j++){ $struct[$i][$j] = explode(|||,$tmp2[$j]);

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread Markus Bertheau
ho, John Bass wrote: printf (trTD%sbr%s/TD TD%sbr%s/tr\n, $row-image_link, ^^ You forgot to close the td tag, maybe your browser didnt display the table because of that. Markus Bertheau -- PHP General Mailing List (http://www.php.net/) To

[PHP] Grep Challenge 2001

2001-08-23 Thread Sondra Russell
Hello everyone! Here's my grep challenge. Turn: !--begin variable: variable_blah-- blah blah blah blah blah blah blah blah !--begin variable: variable_blah2-- blah 2 blah 2 blah 2 blah 2 blah 2 blah 2 blah 2 blah 2 into: (variable_blah) (blah blah blah blah blah blah blah blah)

[PHP] Any Functions !!

2001-08-23 Thread Mark Lo
Hi, is there any PHP functions to create 3D object from the photo. if no, is there any software exists?? Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] always last

2001-08-23 Thread Jeremy Morano
Hi, I need a little bit of help. My variable $team in the option block is always set to the last variable that is readI would like it to contain the option that the user clicks.Please help me! My Select works properly ... $result = @mysql_query($sql,$connection) or die(Couldn't

Re: [PHP] OCI8 on PHP 4 Windows

2001-08-23 Thread Andrey Hristov
PHP for Windows works under SYSTEM id. Check if SYSTEM have access to read(or any other privilege) to the OCI dll. - Original Message - From: Ridai Govinda Pombo (Engenharia BSB) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 5:33 PM Subject: [PHP] OCI8 on PHP

[PHP] constant arrays or something like #define in c

2001-08-23 Thread Gregor Maier
Hi, I'm looking for a way to get a constant array or something that is similiar to a #define XYZ abc in C. I want to be able to do the following: DEFINE SOMEHOW: abc as XYZ (like #define XYZ abc) where abc is an array. So that XYZ is replaced by abc. so that I can use XYZ[key] in my

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread John Bass
Hi, Thank you for the email. I tried your code, but first column is printing image_link web_url fields correctly and second column is repeating values of the first column. Other records or rows are printing same way. Regards, John Bass From: Jeff Lewis [EMAIL PROTECTED] Reply-To: Jeff

[PHP] JPEG true color problems

2001-08-23 Thread Jane Dennett-Thorpe
Hello, I'm trying to make some thumbnails from some JPEG true color images. I have PHP version 4.0.4, and when i try imagecreatefromjpeg($image) on these images, it doesn't happen. After hours of head-beating i've realised that the problem is truecolor (it works if i open an image editor and

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread Jeff Lewis
What did you want in the second column? I was just going by what you had listed below: $row-image_link, $row-web_url,$row-image_link, $row-web_url); Jeff - Original Message - From: John Bass [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 11:16 AM Subject:

[PHP] mail function

2001-08-23 Thread Richard Baskett
I am trying to get the mail function to return anything that tells me that it was sent successfully or at least there were no errors, but assigning a variable to equal the mail function does not seem to return anything... On php's site it says it should return true. Am I going about this wrong?

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread John Bass
second column should print next record that was returned from the query. Thanks. John From: Jeff Lewis [EMAIL PROTECTED] Reply-To: Jeff Lewis [EMAIL PROTECTED] To: John Bass [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Need help to create HTML table with 2 columns. Date: Thu, 23 Aug

Re: [PHP] The future of PHP

2001-08-23 Thread Kai Schaetzl
JSP is the wave of the future As was said two years ago about Java. Does anybody still know about Java? ;-) Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com IE-Center: http://ie5.de http://msie.winware.org ClubWin - Help for

Re: [PHP] constant arrays or something like #define in c

2001-08-23 Thread Andrey Hristov
You can use define in some main config file which is known by all scripts of the site. For example define (SESSION_NAME,mysite_sid); Where you want to use the array ${SESSION_NAME}=array('login'='scott',password=tiger,age=25); ${SESSION_NAME}['login'] or ${SESSION_NAME}['age'] Hope this

Re: [PHP] Grep Challenge 2001

2001-08-23 Thread Andrey Hristov
Try /!--begin variable:?([\w\s]*?)--([\w\s]*?)/m the ? will force PCRE to not be *greedy*. Look in the manual of PCRE for syntaxis. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: Sondra Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] constant arrays or something like #define in c

2001-08-23 Thread Gregor Maier
Unfortunaly that's not an option because I must be able to make the define in the code: it should be like this: i have a script1.php and script2.php. both include a file template.php in my template.php file I use arrays that should have different names depending on the file that included them.

RE: [PHP] Script timeout

2001-08-23 Thread Johnson, Kirk
Why timeout at 300s instead of the 30s or the 12000s which are the only two values reported? Looks like some HTTP timeout, i.e. either Apache or the browser is getting bored. Try outputting something from time to time. Can anybody point me to information on all the possible HTTP timeouts

RE: [PHP] The future of PHP

2001-08-23 Thread Jeff Pearson
Probably the best response to him would be to point him to Sun's own survey results. I remember reading about they surveyed their own customers asking who used JSP and the results ended up being a VERY small percentage. If their own customers don't use them does it really bode well for them?

Re: [PHP] The future of PHP

2001-08-23 Thread Sean C. McCarthy
Hi, Well you are not well informed then. Java is the most popular solution to big web sites with the need to have something fault tolerant and stable. If you look a lot of banks have not JSP or servlets but EJB which are transactional, persistant through connections, multithreaded and have all

RE: [PHP] The future of PHP

2001-08-23 Thread Jeff Pearson
Sorry, Should have given specific information. The original article I read was from InfoWorld. It can be found at: http://www.infoworld.com/articles/op/xml/01/07/09/010709opcringely.xml Following is the excerpt from it: Place in the Sun Meanwhile the light finally dawned on archrival Sun

[PHP] Re: 2 NEWBIE QUESTIONS

2001-08-23 Thread Yura
On 23 Aug 2001, at 0:16, Georgie wrote: 1) Is there any PHP command that'll convert a MySQL database timestamp into a format that humans can read?!! For example, I want to change 20010822001245 into 00:12.45 on the 22-08-2001? I believe all previous replies on this qwestion were good for

[PHP] Re: strange error

2001-08-23 Thread BRACK
if you have structure like html ?php if (isset(...)){ ...; } elseif (isset()){ } else { ... ? /html then you need to insert } before /html or if you use syntax html ?php if (isset()): ...; elseif (isset()): ...; else: ...; ? /html you have to insert endif; If you think you did it but still have

RE: [PHP] The future of PHP

2001-08-23 Thread scott [gts]
:-) for the type of sites that i develop (non-mission-critical, non-financial), i find PHP's simplicity and elegance more than offsets a lack of things like strong typing and a harshly BDSM compiler (and whatever else Java/JSP has that PHP doesn't) for most websites out there, Java is probably

[PHP] parse_url and cgi?

2001-08-23 Thread Jaxon
can someone answer the question - does parse_url in fact NOT work when using PHP as a cgi? i'm unable to make it work, and getting different answers from my isp, etc. cheers, jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Re: conf file access on host server

2001-08-23 Thread Diane Mulberry
can no one help me? Diane Mulberry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi, i'm a relative new comer to php and was wondering if someone could give me some advice on hosting. specifically, access to my own conf file, and whether this is entirely

[PHP] Getting MySQL Query Times.

2001-08-23 Thread Gabe da Silveira
I was looking thru the mysql functions, and there doesn't seem to be one that gives you the amount of time a query takes. Is there anyway to get this information (since it gives it to you when you type queries directly into the mysql shell client)? A script of mine is starting to get fairly

[PHP] Re: mail function

2001-08-23 Thread Gabe da Silveira
There are not a lot of guarantees. A big part of the problem is that you can't get instant feedback. Your mail server may queue the message and not even send it right away, or it could get sent, and your mail server doesn't find out for several minutes while the message goes out on the 'net

Re: [PHP] constant arrays or something like #define in c

2001-08-23 Thread Andrey Hristov
Ok, the solution is : in script1.php define(ARRAY_NAME,array1); in script2.php define(ARRAY_NAME,array2); in template.php: ${ARRAY_NAME}['some_index'] I didn't tested this but think that it will work. If not post a message to think for other way. Andrey Hristov IcyGEN Corporation

Re: [PHP] Re: conf file access on host server

2001-08-23 Thread Andrey Hristov
Many conf variables can be setup at runtime. Just include(require) in every script setup.php Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: Diane Mulberry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 7:12 PM Subject:

[PHP] PHP object orientation with Application Frameworks or Foundation Class Libraries

2001-08-23 Thread Orr, Steve
PHP Wizzards, I'm a PHP newbie but I think I'm falling in love... or at least becoming infatuated with PHP. I'm contemplating a significant PHP development effort on a toolset for Oracle DBA's and I want to architect wisely. Based on prior object oriented development experience with

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Andrey Hristov
Use microtime before and after the query. $this-starttime=explode(' ',microtime()); // query() $this-endtime=explode(' ',microtime()); $this-starttime=$this-starttime[1]+$this-starttime[0]; $this-endtime=$this-endtime[1]+$this-endtime[0]; $this-parse_time=$this-endtime-$this-starttime;

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Nathan Cook
IMO, you are better off printing microtime [http://www.php.net/manual/en/function.microtime.php] before and after the query, and after you loop through it. This will give you a better idea of where the hangups may be. You may also want to sprinkle mircotimes throughout your code to get a good

RE: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Jon Haworth
I was looking thru the mysql functions, and there doesn't seem to be one that gives you the amount of time a query takes. Is there anyway to get this information (since it gives it to you when you type queries directly into the mysql shell client)? A script of mine is starting to get

RE: [PHP] The future of PHP

2001-08-23 Thread Dave
On its Solaris Developer Connection site, Sun posed the question, What language do you use to develop Web-based client applications? The responses went like this: Perl, 41.3 percent; JSP, 19.9 percent; C/C++, 14.2 percent; Linux script language PHP, 11.2 percent; Microsoft Active Server Pages,

Re: [PHP] The future of PHP

2001-08-23 Thread Thomas Deliduka
On 8/23/2001 11:59 AM this was written: On its Solaris Developer Connection site, Sun posed the question, What language do you use to develop Web-based client applications? The responses went like this: Perl, 41.3 percent; JSP, 19.9 percent; C/C++, 14.2 percent; Linux script language PHP,

Re: [PHP] numrows

2001-08-23 Thread ERISEN, Mehmet Kamil
Hello, Chris, with all due respect, DESC is a reserved word for SQL. is english ORDER BY ID DESC meand sort by id in descending order. Martin, your SQL seems to be fine. Are you sure that you are connected to your database. I have run the following SQL against my database SELECT * FROM users

RE: [PHP] Re: strange error

2001-08-23 Thread Dave
if you have structure like html ?php if (isset(...)){ ...; } [...] ? /html you have to insert endif; If you think you did it but still have an error, try to count your if statements and endif; maybe something is missing. This is a matter of personal preference, but use formatting that is

RE: [PHP] The future of PHP

2001-08-23 Thread Dave
He would see JSP at 19.9% and PHP at 11.2 and say that proves his point. And flash developers will claim that the only way to create a site is have the whole thing Flash and crap flying across the client screen all the time... Untill the modem access market drops below 50% of the users on the

[PHP] Re: The future of PHP

2001-08-23 Thread J Smith
XML is pretty standardized, but the implementation of it in various web browsers isn't. I wouldn't consider XML all that comparable to HTML. They don't serve the same purpose. XML is generally used to order and describe data (metadata, basically), and although HTML serves roughly the same

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Gabe da Silveira
Thank you Andrey Nathan. THat was probably going to be the next thing to research. I think I figured out why my code got slow though. I have a preg search of a large field with .* in it at the beginning of an if,elseif,elseif,elseif struct that I should move to the end of it. In article

Re: [PHP] The future of PHP

2001-08-23 Thread B. van Ouwerkerk
Notice it even gives info on PHP use :-) He would see JSP at 19.9% and PHP at 11.2 and say that proves his point. Ask the same question to PPL on this list.. I'll bet you see the opposite. It only proves your favorite kid doesn't understand a thing about statistics. I think PHP is

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Andrey Hristov
$this-starttime=explode(' ',microtime()); // query. $this-endtime=explode(' ',microtime()); $this-starttime=$this-starttime[1]+$this-starttime[0]; $this-endtime=$this-endtime[1]+$this-endtime[0]; $this-parse_time=$this-endtime-$this-starttime; I've copied that from a class member

[PHP] Re: numrows

2001-08-23 Thread Martin Kampherbeek
This is the error I get. MySQL Query Failed. Error 1030: Got error -1 from table handler Message-ID: [EMAIL PROTECTED] To: [EMAIL PROTECTED] From: Johannes Janson [EMAIL PROTECTED] Date: Thu, 23 Aug 2001 12:40:21 +0200 Subject: Re: numrows Hi, $query = SELECT * FROM question WHERE answer'1'

Re: [PHP] numrows

2001-08-23 Thread Martin Kampherbeek
This is the error I get. I tested in MYSQLadmin and there it works. I think there is something with numrows. MySQL Query Failed. Error 1030: Got error -1 from table handler Message-ID: [EMAIL PROTECTED] Date: Thu, 23 Aug 2001 10:11:17 -0700 (PDT) From: ERISEN, Mehmet Kamil [EMAIL PROTECTED]

Re: [PHP] Re: force download in IE -- conclusion

2001-08-23 Thread Tim Frank
I have had success getting IE 5.5 for PC recognising the suggested filename by changing the content type to something other than application/octet-stream. If it was left as that for IE 5.5(which the script snippet indicates) it would tend to take the filename of the script that

[PHP] code check

2001-08-23 Thread Tom Malone
Sorry to bother you all with this, but I have no way to test this, as I have no access to a Mac. Could you tell me if this little piece of code looks as if it would work (detect whether someone's using the Mac OS)? if (preg_match(/mac/i, $HTTP_USER_AGENT) || preg_match(/macintosh/i,

Re: Re[2]: [PHP] printing

2001-08-23 Thread Bill MacAllister
The way that I do it on Linux is to generate TeX output, invoke TeX using system(), and then just lpr the output to the printer. The current production system that I am using actually uses a perl script invoked from a php script, really ugly, but I had the perl script from another project.

[PHP] Dynamic check boxes...

2001-08-23 Thread Jeff Lewis
I have a form where users can enter a link (kind of a free for al links type of thing) When they add their site to the database a 0 is added to the approved field. When I load an admin script I can check all of the ones that have a 0 in that field. I want to have checkboxes form down the

Re: [PHP] The future of PHP

2001-08-23 Thread Jim Jagielski
This whole discussion is kind of bogus anyway :) It's like saying that the age of Pliers is over because you bought a set of Wrenches. PHP is a different tool that JSP. PHP is a much more comprehensive tool that JSP, which is really geared for a very specific task. Despite the fact that at some

Re: [PHP] The future of PHP

2001-08-23 Thread Gabe da Silveira
Let's not forget the ecosystem in which these different technologies thrive. It's all based on who's paying whom to do what. The reality of the situation is that the people in charge don't know (or care) about all these different technologies. They may make some broad decisions (linux vs

[PHP] Re: code check

2001-08-23 Thread Gabe da Silveira
Perhaps you could put it on a webpage and ask a Mac user to see if it works. BTW, there is no reason to use preg_match for that. Instead use strpos(), it is MUCH faster. In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Tom Malone) wrote: Sorry to bother you all with this, but I have no

Re: [PHP] The future of PHP

2001-08-23 Thread Elias Santiago
two-cents Almost all modern technologies are the evolution of previous ones: C - C++,Perl, PHP, Python; Basic - QBasic - VBasic/ASP; Even new languages like Rebol are based (in one way or another) to previous languages. Anyone could develop a parser/interpreter for any new language they

[PHP] Re: Dynamic check boxes...

2001-08-23 Thread Hugh Bothwell
Jeff Lewis [EMAIL PROTECTED] wrote in message 009201c12bff$de696af0$76a1a8c0@LEWISJCIT">news:009201c12bff$de696af0$76a1a8c0@LEWISJCIT... I have a form where users can enter a link (kind of a free for al links type of thing) When they add their site to the database a 0 is added to the

[PHP] Does not deliver mail

2001-08-23 Thread Christof Coetzee
ID: 12932 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Mail Related Operating System: win2k PHP Version: 4.0.4pl1 New Comment: [2001-08-23 14:18:01] [EMAIL PROTECTED] I have a mail account that points to my mail server, my domain name is

[PHP] Newbie Question re: Select boxes

2001-08-23 Thread LB
1) I thought that PHP automatically created variables for all form elements on a page. When I run this, the dropdown box contains the first item, but $Report evaluates as null. I am unclear why. select name=ReportBR option value=1 Test Report A/option option value=2 Test Report

  1   2   >