[PHP] Advantages of php

2001-11-17 Thread Adrian D'Costa
Hi, Is there somewhere on the PHP site that give a list of advantages, speed, etc in comparsion with other similar programs. I have a client that is in ASP and would like to move to PHP and need this info. Thanks Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] alzheimers and confused

2001-11-17 Thread Robert Klinkenberg
It depends on how you exactly formulated the test // if((!strpos($yourimage, .jpg)) or (!strpos($yourimage, .jpeg))) if((!strpos($yourimage, .jpg)) and (!strpos($yourimage, .jpeg))) THe first is if !jpg or !jpeg while the second if statement tests for if !jpg and !jpeg another way to

Re: [PHP] Question on variable variables

2001-11-17 Thread Jason G.
It seems to me that the use of a temp variable may be the clearest solution, and I doubt any overhead would matter really. $a = dog; $tmp = MY.$a; //$tmp = MYdog; So the following two would be the same: $$tmp = Spot; $MYdog = Spot; Good Luck, Jason Garber IonZoft.com At 09:47 PM 11/16/2001

Re: [PHP] Advantages of php

2001-11-17 Thread Jason G.
You could check the list archives... This question flys by every week or two... -Jason Garber IonZoft.com At 01:41 PM 11/17/2001 +0530, Adrian D'Costa wrote: Hi, Is there somewhere on the PHP site that give a list of advantages, speed, etc in comparsion with other similar programs. I have a

Re: [PHP] Question on variable variables

2001-11-17 Thread Jeff Lewis
Thanks Jason and Christoper for replying, here is the solution I came up with. It takes into account that there could be multiple instances of what I'm looking for on the same line - got it working late last night: while (preg_match (/yabb\s+(\w+)/,$curline,$tags)) $curline =

[PHP] installing php on apache

2001-11-17 Thread Douglas McKenzie
Hi, I'm a newbie to php having been working with coldfusion for years. Recently decided to test it out and have configured a box with Red Hat Linux 7.1, kde, apache and mysql. These all seem to be running fine but I can't seem to get a php page to translate. Im assuming that the web root is

[PHP] Re: installing php on apache

2001-11-17 Thread Fred
There are a number of things that could be wrong. It is difficult to tell without knowing any details. I am drawn to the fact that you are just assuming the web root. I don't know if you installed from RPMs or source, but if var/www/html is not set as Apache's document root when you point

[PHP] problem with image

2001-11-17 Thread wloeffelholz
when i want to put an image like this (echo img src='image.gif';), my php is not able to show the image? is there something wrong with my php.ini?? greetings wolf.dietrich von loeffelholz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] problem with image

2001-11-17 Thread Jeff Lewis
I would think it's an HTML problem, try: echo img src=\image.gif\; or echo 'img src=image.gif'; Jeff - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 11:20 AM Subject: [PHP] problem with image when i want to put an image like

Re: [PHP] relative paths

2001-11-17 Thread Christopher William Wesley
On Sat, 17 Nov 2001, Mitja Pagon wrote: I want to know if there is a way to include(require) a file using a path relative to web server root. I think you'll find the $DOCUMENT_ROOT environment variable handy :) ~Chris /\

php-general Digest 17 Nov 2001 17:29:19 -0000 Issue 1000

2001-11-17 Thread php-general-digest-help
php-general Digest 17 Nov 2001 17:29:19 - Issue 1000 Topics (messages 74965 through 74986): wunderground and php 74965 by: Scott Atkins 74967 by: Fred Re: alzheimers and confused 74966 by: Fred 74974 by: Robert Klinkenberg ¹Î¿ø»¡¸®´åÄÄ ÀÔ´Ï´Ù 74968

Re: [PHP] Multiviews and GET requests no longer working?

2001-11-17 Thread James Green
On Fri, 2001-11-16 at 17:49, James Green wrote: If I call foo?id=1, not only is the id variable not set, _SERVER[QUERY_STRING] isn't either. Cookies and session variables work fine, it's just variables passed via GET. If I turn off Multiviews, the variables come through fine, but it means

Re: [PHP] Multiviews and GET requests no longer working?

2001-11-17 Thread James Green
On Fri, 2001-11-16 at 17:49, James Green wrote: If I call foo?id=1, not only is the id variable not set, _SERVER[QUERY_STRING] isn't either. Cookies and session variables work fine, it's just variables passed via GET. If I turn off Multiviews, the variables come through fine, but it means

[PHP] Transfer variable to next web-page

2001-11-17 Thread Olav Drageset
I just started.. How do you transfer a variable from one web-page to another I try to use a form like this: ? echo(P FORM method='POST' action='join2.php' text for button INPUT type='submit' value='Next step' INPUT type='hidden' name='htmlVariableName' value='$phpVariableName' /FORM ); ? and

Re: [PHP] Transfer variable to next web-page

2001-11-17 Thread Richard S. Crawford
Use $phpVariableName = $htmlVariableName; Remember to use the $ in front of the variable that you toss from the HTML form. At 10:00 AM 11/17/2001, Olav Drageset wrote: I just started.. How do you transfer a variable from one web-page to another I try to use a form like this: ?

[PHP] free online PHP books ?

2001-11-17 Thread trongduc
hi, Does anyone know where the Online Free PHP Books are ? I cannot buy a book with Amazon.com in my country. There're a lot of free tutorials on the net, but they 're not enough for me to understand PHP clearly. Please let me know the URLs like that thanks so much... (I love PHP) -- PHP

[PHP] How to get mysql-result into a php variable

2001-11-17 Thread Olav Drageset
This is perhaps elementary, but I cannot find solution in the documentation I want to transfer to a php variable wheter I find a matching firstname in a group from mysql db function lookupFirstname ($fname, $gr, $conection) { $sql = SELECT firstname AS matches ; $sql .= FROM persons ;

[PHP] Difference of queries in PHP/mySQL?

2001-11-17 Thread Jeff Lewis
I am wondering if there are any difference between using PHP and using the command line for mySQL. Entering this at the comman line returns all the membergroups properly. When I use this in my PHP program, it doesn't continue past this line: $request = mysql_query(SELECT membergroup FROM

[PHP] Re: alzheimers and confused

2001-11-17 Thread jimmy elab
de Morgan and Boole, not Alzheimer nor Confusius !(A OR B) = (!A) AND (!B) -- 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] Difference of queries in PHP/mySQL?

2001-11-17 Thread Jack Dempsey
are you actually doing anything with $request? that just gets a mysql result back in a variable, you then have to extract the data from it... Jeff Lewis wrote: I am wondering if there are any difference between using PHP and using the command line for mySQL. Entering this at the comman line

[PHP] words in a string

2001-11-17 Thread wloeffelholz
hey .. i want php to do an IF, when he founds a special word in a string (ex: text_-_write_-_text ) .. i m not able to manage it .. thnx for helping in foward greetings wolf.dietrich von loeffelholz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Form's : making me sick!

2001-11-17 Thread Steve Maroney
Thats sounds right becasuse anything between form ... /form can only will be passeed only to one script. Steve On Tue, 13 Nov 2001, George Pitcher wrote: I don't think that you can nest forms. George - Original Message - From: De Necker Henri [EMAIL PROTECTED] To: PHP-General

[PHP] Re: free online PHP books ?

2001-11-17 Thread Fred
You may not be able to get an entire free book, but Amazon has lots of sample chapters from several PHP books here http://www.amazon.com/exec/obidos/search-handle-form/103-3308426-8753433 Trongduc [EMAIL PROTECTED] wrote in message

RE: [PHP] Transfer variable to next web-page

2001-11-17 Thread Matthew Loff
Richard already answered the variable part, but I thought I'd point out that you need to use double quotes in your HTML tags... Single quotes are incorrect... ? echo(P FORM method=\POST\ action=\join2.php\ text for button INPUT type=\submit\ value=\Next step\ INPUT type=\hidden\

RE: [PHP] Re: alzheimers and confused

2001-11-17 Thread Matthew Loff
I was waiting for someone to meantion de Morgan! 10 points for Mr. Elab. Ha ha... -Original Message- From: jimmy elab [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 1:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: alzheimers and confused de Morgan and Boole, not

[PHP] Re: How to get mysql-result into a php variable

2001-11-17 Thread Fred
I'm not sure where you found the function mysql_store_result, but it is not a built-in PHP function and that is why you are getting an error. If you just want to return Match if one or more rows in the group match the first name use something like this: function LookupFirstname ($FName, $Group,

[PHP] Re: alzheimers and confused

2001-11-17 Thread Fred
Brilliant. For those of us unfamiliar with the laws of de Morgan: http://www.unc.edu/~rowlett/Math81/notes/DeMorgan.html Fred Jimmy Elab [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... de Morgan and Boole, not Alzheimer nor Confusius !(A OR B) = (!A) AND (!B)

Re: [PHP] words in a string

2001-11-17 Thread Johan Holst Nielsen
i want php to do an IF, when he founds a special word in a string (ex: text_-_write_-_text ) .. i m not able to manage it .. ?php function doThis($x) { //something? $result = $x. phplover; return $result; } $string = Hi whats your name? Hi whats your name?; $string_arr = explode( ,

Re: [PHP] words in a string

2001-11-17 Thread Julio Nobrega Trabalhando
if (ereg('special word', $string)) { echo 'Found'; } else { echo 'Not Found'; } -- Julio Nobrega No matter where you go, this. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hey .. i want php to do an IF, when he founds a special word in a string

[PHP] Converting dates?

2001-11-17 Thread Jeff Lewis
I am storing a birthdate in my database as a Unix timestamp but when I display it I want to calculate the different between that date and todays date and display the persons age. How can I do that with PHP? I also want to know if it is currently their birthday. So trying to set $isbday to yes

RE: [PHP] Converting dates?

2001-11-17 Thread Jack Dempsey
search the archives there are tons of messages dealing with date manipulation. basically take the timestamps find the difference in seconds, convert to days, etc jack -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 3:17 PM To: PHP is

Re: [PHP] Converting dates?

2001-11-17 Thread Jeff Lewis
Yes thanks for that, I already have this but am having a brain cramp on how to obtain years. function datediff($now, $old) { / $DIS = $now - $old; // Diff In Secs $secs = $DIS % 60; // modulo $DIS -= $secs; $days = floor($DIS / (24*60*60)); $DIS -= $days * (24*60*60); $hours =

[PHP] comma-formatting numbers

2001-11-17 Thread Scott Dudley
i'm new to php and am having difficulty translating this tiny awk function that i use to comma format numbers. can someone assist? my stumbling block thus far have been the fact the the php regex matching functions don't return the byte offset within the haystack and the regex replace

Re: [PHP] comma-formatting numbers

2001-11-17 Thread Paul Wolstenholme
You can do this using the number_format function or probably sprintf. /Paul On Saturday, November 17, 2001, at 01:36 PM, Scott Dudley wrote: i'm new to php and am having difficulty translating this tiny awk function that i use to comma format numbers. can someone assist? my stumbling

[PHP] Standalone PHP Application

2001-11-17 Thread John Monfort
Hello Everyone ! I'm looking for information on using PHP for standalone applications. Specifically, I need to create a PHP-based application that can be runned from a CD-ROM. Have any of you done this? Any suggestions? On another note: I need to develop a CD-ROM based Survey, where

[PHP] PHP Backing up a Database?

2001-11-17 Thread cosmin laslau
Hi, Say I'm not really confident in the prowess of my server, and I want to download my database onto my computer. Can that be done? What can I look (FTP access) in the directory structure. I guess, where is it usually located? Thanks. Cosmin Laslau

[PHP] Setting up PHP and ODBC on Linux

2001-11-17 Thread mweb
Hello, as you may remember, some day ago, I asked how to develop on linux PHP pages accessing Mysql via ODBC (The reasons why I *have* to cope with this exact sub optimal set up are in the original message, no reason to repeat them here). I have installed all the UnixODBC rpms I could find ( I

RE: [PHP] PHP Backing up a Database?

2001-11-17 Thread Jack Dempsey
mysqldump check it out, either man or google then ftp that file down, load it wherever, and mysql database dump.sql jack -Original Message- From: cosmin laslau [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Backing up a

Re: [PHP] Apache 2.0.28

2001-11-17 Thread Tyler Longren
Hello, I tried compiling apache 2.0.28 w/ php 4.0.6. Here's how I did it: Install apache: ./configure --prefix=/usr/local/apache2 --enable-module=so make make install Install PHP: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-xml --disable-debug --enable-track-vars

[PHP] Mortgage Leads Available!

2001-11-17 Thread masscash2002
Are you a Mortgage Office in need of leads? We receive refinance requests direct from borrowers throughout the United States daily! Whether your office services one state or multiple states, our leads will meet your needs! A few features of our program: *Leads are

Re: [PHP] Advantages of php

2001-11-17 Thread John Lim
See http://php.weblogs.com/php_vs_asp and http://php.weblogs.com/php_asp_7_reasons The articles need to be updated for Microsoft.Net though. Jason G. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You could check the list archives... This question flys by

[PHP] What's wrong with this date ?

2001-11-17 Thread trongduc
hi there, I try to save a record (in the date type in MySQL) from the INPUT type=text by : $query = INSERT INTO $table VALUES ($post_id, 0, '$topic', '$uname', '$body', $date, '$newdate', 0) ; But it couldn't work (I used $date or '$date' on above, but they got the same results) ! It showed

php-general Digest 18 Nov 2001 06:02:16 -0000 Issue 1001

2001-11-17 Thread php-general-digest-help
php-general Digest 18 Nov 2001 06:02:16 - Issue 1001 Topics (messages 74987 through 75023): Re: relative paths 74987 by: Gaylen Fraley Re: Multiviews and GET requests no longer working? 74988 by: James Green 74989 by: James Green Transfer variable to next web-page

RE: [PHP] What's wrong with this date ?

2001-11-17 Thread Andrew Forgue
Well it should be '$date', Also.. If the column type is date and you are entering it for a form, check to make sure you are typing it in ok and you trim() the variable if It still doest work... do a ? print $query ? before the mysql_query() and see exactly what its inserting...

[PHP] Changing var value from int to string

2001-11-17 Thread phantom
Is there any inherit danger or taboos against changing the value of a variable from an integer to a string? example: if ($Msg==1) $Msg = You have foobar'ed your entire server.; Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: What's wrong with this date ?

2001-11-17 Thread Fred
Do yourself a favor and read the mysql manual. It explicitly answers your questions and many more you are likely to have. Furthermore, there is a searchable manual online at mysql.com that makes it rather easy to find answers about mysql. To get you started, here is a link to a description of

[PHP] xslt function documentation

2001-11-17 Thread Papp Gyozo
Hi, I'd like to know if someone out there knows a good tutorial or some simple examples about how to use xslt functions. The manual says the xslt ext is in experimental phase and so the documentation lacks of even good examples or description of the function arguments. I've already

Re: [PHP] xslt function documentation

2001-11-17 Thread Papp Gyozo
OK, I found some hints in the annotated manual. BTW, I'm looking for hearing any comments on this ... - Original Message - From: Papp Gyozo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 11:19 AM Subject: [PHP] xslt function documentation Hi,

Re: [PHP] Question on variable variables

2001-11-17 Thread Papp Gyozo
have you tried /e modifier? preg_replace(/yabb\s+$tags[1]/e,'${$1}', $curline); it's just a tip. - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 2:25 PM Subject: Re: [PHP] Question on variable variables

Re: [PHP] Question on variable variables

2001-11-17 Thread Papp Gyozo
Oops... have you tried /e modifier? preg_replace(/yabb\s+$tags[1]/e,'${$1}', $curline); preg_replace(/yabb\s+(\w+)/e,'${$1}', $curline); it's just a tip. - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November

Re: [PHP] working HEADER in PHP

2001-11-17 Thread Papp Gyozo
Hi, I used header(content-type:text/html;charset='windows-1256'); and header(content-language:'fa'); I suggest to try Content-Type Content-Language with initial capitals rather than all lowercase and simply fa, without qoutes. header(Content-Type: text/html;

Re: [PHP] Apache 2.0.28

2001-11-17 Thread Vincent Stoessel
The current php will work with apache 2.x use:--with-apxs2 when you configure php Jobarr wrote: I need a build of PHP that can be used as a module with Apache 2.0.28 beta. Anyone know where I could find one? thanks -Jobarr -- Vincent Stoessel [EMAIL PROTECTED] Java Linux

[PHP] relative paths

2001-11-17 Thread Mitja Pagon
Hi! I want to know if there is a way to include(require) a file using a path relative to web server root. I'm aware of the fact that you can specify include path, but I believe that this is not the best solution, since applications written that way aren't easily portable. What I'm looking for

[PHP] Re: relative paths

2001-11-17 Thread Gaylen Fraley
You've answered your own question. If document-root is set to /usr/web/htdocs then require(/somefile) will expect to find somefile in document-root. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com PHP KISGB v2.22 Guestbook http://www.gaylenandmargie.com/phpwebsite Mitja Pagon

Re: [PHP] Apache 2.0.28

2001-11-17 Thread Jobarr
I read something saying that the API changed from 2.026 to 2.0.28 and when I tried using a Apache2 php module, it said it was not compatible with this version of Apache. -Jobarr Vincent Stoessel [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The current php will