php-general Digest 26 Jan 2001 16:10:25 -0000 Issue 477

2001-01-26 Thread php-general-digest-help
php-general Digest 26 Jan 2001 16:10:25 - Issue 477 Topics (messages 36681 through 36739): PHP/MYSql equivalent to Hypermail/Monharc? 36681 by: Greg Schnippel Password security from PHP to MySQL 36682 by: Egan Re: SQL Server DB to mySQL DB 36683 by: Jason

[PHP] Invoke PHP script from onLoad handler?

2001-01-26 Thread Chuck Mayo
Sorry if this has come up before. I want to update a select list from a mySql database whenever the browser window gets the focus. This is because I anticipate that the user will frequently use a second window to make additions to the database that holds the list values while filling in the

[PHP] max size of array

2001-01-26 Thread Giancarlo
what is the max number of elements into an array?

[PHP] max size of array

2001-01-26 Thread Giancarlo
what is the max number of elements into an array?

[PHP] Accessing variables from other Apache modules

2001-01-26 Thread Andreas 'Count' Kotes
Hi! I'd like to get SSL_CLIENT_S_DN from mod_ssl but don't seem to be able to get it using getenv() or apache_note(), it doesn't even show up when doing phpinfo() .. any hints? Count -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Uninstallation of CGI Version of PHP

2001-01-26 Thread [ rswfire ]
Hello... I just upgraded my computer to NT5. When doing so, I accidentally installed the wrong version of PHP. =( I installed the CGI version... I want to use the ISAPI module. How can I effectively undo what the installation program did to install the CGI version? What should I do to

[PHP] AUTH_PW External Authentication

2001-01-26 Thread Chen Shiyuan
Hello everyone! I am currently using Apache-1.3.14 with php-4.0.4pl1 compiled statically into it and running on RedHat Linux 6.2 . Apache is configured to do authentication for certain URLs via a auth_ldap module which is dynamically loaded when Apache starts. I noticed that when I access

[PHP] phpinfo ?

2001-01-26 Thread kaab kaoutar
Hi there! I'm sure it's a stupid problem but the phpinfo does work while trying the following html code: htmlheadtitlePHP Test/title/head body ?php phpinfo() ? /body/html the result is a blank page! And when i create an php file with only: ?php phpinfo() ? i have a dos window where a list

[PHP] PHP 4.0.3 on Debian?

2001-01-26 Thread Thomas Wentzel
Hi again, Okay! I am now able to compile (and use) Lerdorfs stocks example on my Laptop which runs RedHat... But I still can't get it to work on my Debian (work machine). I use the following configure string on both machines - only differences is the paths to pgsql and apxs configure

Re: [PHP] Post without submit?

2001-01-26 Thread Max A. Derkachev
Hello Chris, Friday, January 26, 2001, 8:23:27 AM, you wrote: C is there anyway to post without clicking a submit button? You can, e.g. using javascript event. onSomething="document.forms['formname'].submit()" -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Symbol-Plus Publishing

Re: [PHP] How to make links?

2001-01-26 Thread Richard Lynch
How do make admin site that lists htm documents from directory and i can define link name to each of these? So when user comes, he sees link list to these documents, with names i defined. Something not unlike this might work: [Untested code] create table links( linkid int(11)

Re: [PHP] Date -1

2001-01-26 Thread Richard Lynch
I am trying to show the records created from the previous day. How can I make it show the date before today? My date field is like 2001-01-24 16:13:51. Below shows the current day... $FileDate = date ("Y-m-d"); $connection = mysql_connect ("localhost", "*", "**"); if ($connection ==

Re: [PHP] Zend hit (Encoder price)

2001-01-26 Thread Richard Lynch
You are entirely correct. However, I (personally) feel that by pricing it so high you're targeting a very small niche market at a higher rate. Pricing it in the "$300.00" range would not cost you that niche - but it would gain you the "x-million" users/freelance developers. Sure, $6,000 is

Re: [PHP] Urgent answers needed for FILE UPLOAD problem....

2001-01-26 Thread Richard Lynch
Hello all. I've spent the past month or two implementing a file upload utility for the web based on PHP's http upload method. It works fine for smaller files, and it's been working fine for files I've tried up to and including 400 megs at a time. The problem I'm having is that we want to

Re: [PHP] can't upload files if extension has more than one dot.

2001-01-26 Thread Richard Lynch
I am trying to upload the files to the sever. For files that has only one dot such as abc.txt and 123.doc, it works fine. But when uploading files that have more than one dot such as 123.txt.pdf, there's problem, and I tried to echo the $userfile[i], and it is "none". Codes are attached as

Re: [PHP] trouble with updating the id numbers

2001-01-26 Thread Richard Lynch
Hi all. In the project I'm working on, I've got a table with ids that are written based on how many records are in the table. i.e., the first record has an ID of 1, the 50th is 50, etc. When a row gets deleted (I created a web interface, I don't want all these members using phpMyAdmin),

Re: [PHP] Read Vs. Include

2001-01-26 Thread Richard Lynch
I want to *read* a file into a page and not process any PHP. I'm just reading an HTML file. I though it was simple, I thought I had it figured out, but now when I try, I get the following error: Unless there is PHP code in there that you want to make sure it doesn't get executed, 'include'

Re: [PHP] Splitting at word count

2001-01-26 Thread Richard Lynch
I'm doing a page where the front page will show "news" stories. What I'd like is if the story is longer than X words/chars/etc, the index page will show the first X words, then a link for the full story. Does anyone have a good idea on how to split after a certain number of words? ?php

Re: [PHP] Anyone who can help me making a loop of this?

2001-01-26 Thread Richard Lynch
The "easiest" way to do that kind of output is "recursion" It's a kind of iteration/looping thing where a function calls itself. Sample: function fact($x){ if ($x == 0){ return 1; } else{ return $x * fact($x - 1); } } Basically the function eats itself rather

Re: [PHP] number_format() buggy round when usind database resultset

2001-01-26 Thread Richard Lynch
I'm finding some problems on using number_format($value, $decimal, ",", ".") when I have a value comming from a resultset (database query results)... If I had something like '123.45', using number_format it will return '123,00'. I think this happens because my value is a string and PHP

Re: [PHP] Fopen

2001-01-26 Thread Richard Lynch
? $fp = fopen("http://www.parentprofiles.com/clicker.php?profile_id=" . $this-profile_id . "code=1","r"); echo $fp; ? to do it. however when I do all I get is a response that says: Resource id #1 instead of giving me the page. Any ideas? Basically, that Resource id # 1 is like a paper

Re: [PHP] session without cookies

2001-01-26 Thread Richard Lynch
i use the session-functions with php4 and everything works fine. but if a visitor turns off cookies nothing seems to work.. is there a way to support a sessionid with cookies and thru the url ? Yes. Compile PHP --with-trans-id (?) or just echo $PHP_SESSID (or whatever it is) into all your

[PHP] can't upload files with more than one dot in the file name.

2001-01-26 Thread david klein
Hello! I am trying to upload the files to the sever. For files that has only one dot such as abc.txt and 123.doc, it works fine. But when uploading files that have more than one dot such as 123.txt.pdf, there's problem, and I tried to echo the $userfile[i], and it is "none". Codes are attached

[PHP] Re: Get rid of da Zero's

2001-01-26 Thread Art Wells
preg_replace("/0+$/","",$number); On Thu, 25 Jan 2001, Ethan Nelson wrote: Almost there... actually this creates one problem... It turns 40.00 into 4 It needs to quit shaving zero's when it hits the decimal point. 40.00 into 40 45.50 into 45.5 40.25 into 40.25 Thanks -Original

Re: [PHP] Get rid of da Zero's

2001-01-26 Thread Christian Reiniger
On Thursday 25 January 2001 23:27, Ethan Nelson wrote: It needs to quit shaving zero's when it hits the decimal point. 40.00 into 40 45.50 into 45.5 40.25 into 40.25 Hmm, $ValWithoutZ = (double) $ValWithZ; should work fine (i.e. interpreting the number as floating-point value instead of

[PHP] test

2001-01-26 Thread Brian V Bonini
test -- 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] Persistent connections and transactions

2001-01-26 Thread Nuno Silva
Frank Joerdens wrote: On Thu, Jan 25, 2001 at 05:10:54PM -0300, Martin A. Marques wrote: [ . . . ] OK, lets see if we can understand what each other is saying (maybe I'm not getting your point here). Lets say browser A connects to the apache server, to a page using php code. Lets say

[PHP] Circle using GD

2001-01-26 Thread Piotr Duszynski
I need to draw circle using GD library. Can you get me some function doing this? Thanks. -- Piotr Duszynski http://www.softomat.com.pl http://filmomat.3miasto.pl http://www.3miasto.pl -- PHP

RE: [PHP] Echo and Print

2001-01-26 Thread Nathan Cassano
As I understand it, echo is somewhat of an language construct and print is a function. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 11:37 AM To: [EMAIL PROTECTED] Subject: [PHP] Echo and Print I know it is a kind of stupid

[PHP] Conditional include based on virtual host ?

2001-01-26 Thread Alain Fontaine
Hello, I have developed a large web application the contents of which (language and data) depends on the URL the site is accessed from, e.g. en.site.com would display the "english" site, and "fr.site.com" would display the french site, and so on. The whole thing is "parameterized" through a set

Re: [PHP] Ideas?? (OT- MySQL)

2001-01-26 Thread Website4S
Thanks for the input, I have turned it around now as you said and recorded the projectID in the bid table rather than the other way round. Cheers Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Read Vs. Include

2001-01-26 Thread Daniel Grace
Any of these will work: echo implode("\n", file($filename)); fpassthru(fopen($filename, "r")); readfile($filename); You probably want readfile(). http://www.php.net/manual/en/function.readfile.php -- - Daniel Grace http://dewin.oldbattery.com/ "Space may be the final frontier but its

RE: [PHP] how do you erase quotes from variable?

2001-01-26 Thread Dustin Butler
I have a variable(s) that hold the string: "name" and I'd like to kill the quotes so it contains: name I am aware of the strlen() function but can find the concant Little Help? Mike If you *know* the variable is quoted you could also do: $new = substr($variable, 1, -1); I

Re: [PHP] sleep and usleep not working ??

2001-01-26 Thread Benny Nissen
Hi Sorry - but as far as I can tell it does not work. It still have the same strange behavior. When using sleep I have no output. Usleep has no wait time (or it may delay output a bit but not program execution) ? Benny ""Daniel Grace"" [EMAIL PROTECTED] skrev i en meddelelse

RE: [PHP] Echo and Print

2001-01-26 Thread SED
Hi, I cut paste this from an earlier e-mail from this list, hope it helps: - The print() function returns a boolean indicating the status of the call. If the write was successful, print() returns 1. If not, it returns

[PHP] PHP on MAC

2001-01-26 Thread iGuru
I want to install PHP on iMAC with MAC OS 9, please advise if possible. Further, is there any lowcost or free web server that supports PHP on my MAC OS9. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] How can I specify connection timeout when open IMAP mailobox?

2001-01-26 Thread Dezider Gra
When I try to connect to mailbox, I get error "Connection timed out". Is it possible to specify timeout for this? TIA. Dezider. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] updating time fields

2001-01-26 Thread Kurth Bemis
i am wondering if anyone has written a snippet to process the current date or mktime into a mysql timestamp feild. ~kurth -- 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] Premature end of script headers error

2001-01-26 Thread pil
Hi, I compiled and installed php4 for the first time and it seems that all went right as the notice in /var/log shows: [notice] Apache/1.3.12 (Unix) PHP/4.0.4pl1 configured -- resuming normal operations But when I try to execute any sort of php script Im stuck with an Internal Server error and

Re: [PHP] Search for the documentation

2001-01-26 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] betokened: BC I'm using Beta 2.10a (I'm in the Beta program), but I'm not BC completely sure when this new feature was added (some where BC between 2.00 and 2.10a): BC If you go into settings and syntax for PHP in Preferences, I see a BC 'function

Re: [PHP] pdflib: unable to generate on the fly, need to write to file

2001-01-26 Thread Dominic Schanen
On Thu, 25 Jan 2001 18:42:41 -0700 (MST), [EMAIL PROTECTED] wrote: I don't know, but I'd love to know the answer to this, too. I currently have to do the same as you: output to file and then direct the browser to the disk- based file. (Then I have to bother about file cleanup.) I had pdflib

Re: [PHP] Splitting at word count

2001-01-26 Thread Jose Casal-Gimenez
I'm doing a page where the front page will show "news" stories. What I'd like is if the story is longer than X words/chars/etc, the index page will show the first X words, then a link for the full story. Does anyone have a good idea on how to split after a certain number of words?

[PHP] posting plain/text with CURL?

2001-01-26 Thread Mathijs Homminga
Q: Is it possible to post plain/text data from PHP with the build-in CURL functions? Hello Mr. General PHP! I want to post PLAIN/TEXT data to some webpage (through SSL). I want to do this in PHP by using the build-in CURL support. However, by default, CURL is posting the data as "url-encoded.."

[PHP] update db

2001-01-26 Thread Kurth Bemis
whats the php function that will let me update a db field? I've been looking at the manual but there seems to be no mention of it. ~kurth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] Splitting at word count

2001-01-26 Thread Dustin Butler
I'm doing a page where the front page will show "news" stories. What I'd like is if the story is longer than X words/chars/etc, the index page will show the first X words, then a link for the full story. Does anyone have a good idea on how to split after a certain number of words?

[PHP] Why the Change in Ver 4?

2001-01-26 Thread Karl J. Stubsjoen
Does Version 4 support either { } "squiglees" or [ ] "brackets" in this code: if($retrn{strlen($retrn)-1} == '') -or- if($retrn[strlen($retrn)-1] == '') Yes. This is a 4.x feature only. The idea is that in the long run, [] will no longer be supported for string offsets, only

[PHP] disregard last two questions

2001-01-26 Thread Kurth Bemis
i'm a bit slow todayplease disregard those last 2 questions from me and i answered them myself :-) -- 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:

[PHP] Do they like shut this list down at night or what?

2001-01-26 Thread Dallas Kropka
Why is it that I never get messages in the list from the late night coders after like 6 central? -- 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

Re: [PHP] Zend hit (Encoder price)

2001-01-26 Thread Christopher Allen
Unfortunately, it's not that simple. You haven't factored in Support costs nor administrative overhead nor... Well, I don't know what else the Marketing folks do when they figure these things out, but that's why I'm not in Marketing, eh? Right it's not my game either (marketing), but

Re: [PHP] Urgent answers needed for FILE UPLOAD problem....

2001-01-26 Thread Rasmus Lerdorf
Because of the way the code is currently written, a file upload ends up in RAM before it gets written to disk. If you want to upload 1Gig files, you need 1Gig of RAM. That's crap, we know, and Jim Winstead has volunteered to fix this. Not sure what the timeline is on it yet though. -Rasmus

[PHP] You can have a visa card .. no deposit

2001-01-26 Thread garey
This company is offering a visa card with no annual fee, no deposit and will pay you for the people you refer.Just request the web address by replying to : [EMAIL PROTECTED] Insert "request " in the subject line

Re: [PHP] zend ide debugger

2001-01-26 Thread Terrence Chay
1-month commercial license ($90). Download wasn't too bad. I haven't had a chance to check out the Zend LaunchPad. The installation (Apache Linux PHP 4.04pl1+patches) took me about 30 minutes for client and server which included the wait on the license key. It took us another day to put

Re: [PHP] Greek PHP mailing list

2001-01-26 Thread Chris Hayes
kyk():Prgm:Local a,b,c: 13-a: "|+|"-b:ClrIO:Output 0,-1,left(b,a)""right(b,a):While abs(13-a)13:getKey()-c:If abs(50-c)=1 Then:a+c-50-a:Output 0,-1,left(b,a)""right(b,26-a):EndIf:EndWhile:EndPrgm Play with the 1 and 3 keys. Guess what it does by just looking at the

[PHP] if ... else ...

2001-01-26 Thread Chakravarthy K Sannedhi
Hi all, I am having 5 rows in a mysql database related to five different users. these rows contains their firstname, lastname and details of scenes 1 to 5(these details are numeric values from 1 to 3). if any of these fields from scenes 1 to 5 are empty that will be detected from the firstname

Re: [PHP] session without cookies

2001-01-26 Thread Chris Lee
compile with --enable-trans-sid works great for me :) Chris Lee Mediawaveonline.com [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi.. i use the session-functions with php4 and everything works fine. but if a visitor turns off cookies nothing seems to

Re: [PHP] PHP on MAC

2001-01-26 Thread lou
You can't on os9. You have to run it on osX PB (or osx server I believe) Go here: http://homepage.mac.com/LightyearDesign/MacOSX/Packages/ I want to install PHP on iMAC with MAC OS 9, please advise if possible. Further, is there any lowcost or free web server that supports PHP on my MAC

[PHP] Looking for Code Example: Telneting to server to verify password

2001-01-26 Thread Scott Brown
I dont know if this is reasonable to do or not, but what I'm thinking of validating a user based on his/her current username/password. Does anyone know if this is possible to do? Or better yet - does someone have some code sitting around I can scavange from? PHPBuilder didnt help much

[PHP] sessions without cookies?

2001-01-26 Thread Noel Akins
Would there be any point in using php sessions if you aren't using cookies? You have to store login info anyway, why not just use a temp table to store transaction info and write to the database at the end of a session? From what I've read on sessions, you have to use cookies thanks -- PHP

[PHP] which syntax?

2001-01-26 Thread kaab kaoutar
hi! what's the difference between using ?php ? and using ? ? and using script language="php" /script thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List

[PHP] arg....

2001-01-26 Thread Kurth Bemis
i'm having a horrible time updating 2 fields in the same db. I don't get an error but the fields aren't updatedcan anyone send me a snippet for the to learn from? ~kurth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] arg....

2001-01-26 Thread Kurth Bemis
At 12:31 PM 1/26/2001, Krznaric Michael wrote: sorry - here you all go.. // number crunching time $count++; $time = date("Y-m-d H:i:s"); $result = mysql_query("INSERT INTO links (count) VALUES $count WHERE lid=$id"); echo $result; You need to be a little more specific about DB

[PHP] include_path in windows

2001-01-26 Thread Shane McBride
I am trying to get my php.ini file configured correctly. I have a script that calls the require function/command( I'm not sure which it is..) Here's what the .ini file is: include_path=d:\sites;d:\sites\merchantpower\setup According to the notation in the .ini file I have the correct syntax,

Re: [PHP] arg....

2001-01-26 Thread Shawn Blaylock
You might want to try this: mysql_query("INSERT INTO links (count) VALUES ("$count") WHERE lid=$id"); Kurth Bemis wrote: At 12:31 PM 1/26/2001, Krznaric Michael wrote: sorry - here you all go.. // number crunching time $count++; $time = date("Y-m-d H:i:s"); $result =

Re: [PHP] Persistent connections and transactions

2001-01-26 Thread Frank Joerdens
On Fri, Jan 26, 2001 at 11:01:14AM +, Nuno Silva wrote: [ . . . ] i ran across this transaction problem vs. persistent conn in pgsql some time ago. I found two workaround methods: - don't use persistent conn's :-) or; - start every conn with the usual pg_pconnect and then query a

Re: [PHP] Greek PHP mailing list

2001-01-26 Thread Chris Hayes
The options: Get a graph-link cable (which I can't find ANYWHERE), or make your own during study hall, making them sufficiently stupid that the code can be compressed down to a screenful: kyk():Prgm:Local a,b,c:13-a:"|+|"-b:ClrIO:Output

Re: [PHP] arg....

2001-01-26 Thread Iván Sánchez Ortega \MR\
"Kurth Bemis" ... At 12:31 PM 1/26/2001, Krznaric Michael wrote: sorry - here you all go.. // number crunching time $count++; $time = date("Y-m-d H:i:s"); $result = mysql_query("INSERT INTO links (count) VALUES $count WHERE lid=$id"); i'm having a horrible time updating 2 fields in

[PHP] include_path again

2001-01-26 Thread Shane McBride
OK, I figured out that I had forgotten the quotes around the path(s), but I still don't understand the path itself. Will it look in sub directories.For example: include_path=".;d:\sites" Will PHP look in any subs under sites? - Shane

[PHP-I18N] You can have a visa card .. no deposit

2001-01-26 Thread garey
This company is offering a visa card with no annual fee, no deposit and will pay you for the people you refer.Just request the web address by replying to : [EMAIL PROTECTED] Insert "request " in the subject line

Re: [PHP] Flash/PHP

2001-01-26 Thread Rasmus Lerdorf
You can use premade flash movies just as you would in HTML. Therefore everything that is normally available is available in PHP, plus if you want, you get to use the wonderful libswf! :) libswf isn't maintained anymore though. We will soon have the ming library in PHP, but it works already.

Re: [PHP] Flash/PHP

2001-01-26 Thread Mike Chambers
I have created a Generator / PHP library which makes it easy to create Flash content from PHP using Macromedia Generator. Unfortunately, do to some bugs in PHP with the System() command on Windows, I am not going to release the library until the next PHP update (assuming they fix the bugs).

[PHP] php_oracle.dll

2001-01-26 Thread kaab kaoutar
hi! how can i get the php_oracle.dll, i'm working on windows NT workstation! thanks! _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To

[PHP] common.inc probs.

2001-01-26 Thread Shane McBride
I have a script that pulls in the following file via: require 'common.inc' The problem occurs when it hits the $UNIX_PATH variable. At least I think that's where it creates a problem. If I comment it out it works fine, but I of course need that variable. First of all I created a script that

Re: [PHP] Echo and Print

2001-01-26 Thread kaab kaoutar
print is a function where u can add html tags like print("brb hello $name") however echo is a command where we can't include html tags ! echo "hello".$name From: Philip Olson [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Echo and Print Date: Fri, 26 Jan 2001

Re: [PHP] Modulus

2001-01-26 Thread Teodor Cimpoesu
Hi Mike! On Thu, 25 Jan 2001, Mike P wrote: I know i'm a liitle slow but why does 2%4 = 2 and not 0 or 1 cause 4*0+2=2 thanks Mike [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Echo and Print

2001-01-26 Thread Philip Olson
print is a function where u can add html tags like print("brb hello $name") however echo is a command where we can't include html tags ! echo "hello".$name This is VERY incorrect, please read this : What is the difference between echo and print ?

[PHP] CGI ERROR on IIS4 and PHP 4.0.4pl1

2001-01-26 Thread Angel Behar
Hi !! I'm running PHP under IIS4 and PHP 4.0.4pl1 and all my scripts work perfect but one that try to access a DBF database via ODBC. I set all the permission on php.exe , the database and the script. the error I receive is : The specified CGI application misbehaved by not returning a

[PHP] mod_php4 + mod_python + apache 1.3.14: no workie!

2001-01-26 Thread Aaron Faby
Hello, I have successfully compiled mod_php4 and mod_python as DSO's for apache 1.3.14, and both will work independently with apache, but if I try to load both of them at I get the following apache error: dyld: /usr/sbin/apache multiple definitions of symbol _pcre_free

Re: [PHP] how to rename a database

2001-01-26 Thread Dominic
at a mysql prompt in the database where your table resides, type the following: alter table currentname rename newname; That should take care of it. -- Dominic Fang Li wrote: Does anyone know how to rename a database in MySQL? Thanks! fang -- PHP General Mailing List

[PHP-CVS] cvs: php4 /ext/pdf pdf.c php_pdf.h

2001-01-26 Thread Egon Schmid
eschmid Fri Jan 26 10:52:37 2001 EDT Modified files: /php4/ext/pdf php_pdf.h pdf.c Log: Fixed some protos. Index: php4/ext/pdf/php_pdf.h diff -u php4/ext/pdf/php_pdf.h:1.12 php4/ext/pdf/php_pdf.h:1.13 --- php4/ext/pdf/php_pdf.h:1.12 Fri Jan 26 00:20:23

Re: [PHP] how to rename a database

2001-01-26 Thread Philip Olson
Here's a FAQ on renaming a mysql database : http://www.faqts.com/knowledge_base/view.phtml/aid/1262/fid/102 If anyone has useful words to add to it then do so. Philip Fang Li wrote: Does anyone know how to rename a database in MySQL? Thanks! fang -- PHP General Mailing

[PHP] Uninstallation of CGI Version of PHP -- ISAPI Module Wanted Instead

2001-01-26 Thread rswfire
Hello... I just upgraded my computer to NT5. When doing so, I accidentally installed the wrong version of PHP. =( I installed the CGI version... I want to use the ISAPI module. How can I effectively undo what the installation program did to install the CGI version? What should I do to

[PHP] Display progress in browser using flush(); IE versus NS

2001-01-26 Thread Spallek, Heiko
Hi, I have a script which slowly processes several thousand lines of text. I want to give users a feeling for that the process is not dead. Thus, I am using: ... print "processing "; print" "; flush(); for($i=0;$icount($total);$i++) { print". ";

Re: [PHP] common.inc probs.

2001-01-26 Thread Mark Maggelet
On Fri, 26 Jan 2001 13:37:42 -0500, Shane McBride ([EMAIL PROTECTED]) wrote: I have a script that pulls in the following file via: require 'common.inc' The problem occurs when it hits the $UNIX_PATH variable. At least I think that's where it creates a problem. If I comment it out it works fine,

[PHP] Using PHP to do centralized site authentication

2001-01-26 Thread Aaron D. Turner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to do something in PHP4.0.4p1 that in the past I've done in mod_perl, but appears to be more difficult. Basically I have some PHP code that does access checks against a DB to see if that user has access to the requested URL. I'm using

Re: [PHP] Using PHP to do centralized site authentication

2001-01-26 Thread Rasmus Lerdorf
Just do: Header("Location: $url"); exit; -Rasmus On Fri, 26 Jan 2001, Aaron D. Turner wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to do something in PHP4.0.4p1 that in the past I've done in mod_perl, but appears to be more difficult. Basically I have some PHP code

[PHP] PHP on FreeBSD 3.2

2001-01-26 Thread Julia A . Case
I'm having some trouble with PHP4 on a FreeBSD 3.2 machine. PHP3 compiles and works fine, but PHP4 gives a floating point error (both as a module and static). PHP4 under FreeBSD 4.2 works fine. Any ideas, Julia -- [ Julia Anne Case ] [Ships are safe inside the harbor, ]

Re: [PHP] PHP on FreeBSD 3.2

2001-01-26 Thread Rasmus Lerdorf
Try a snapshot from http://snaps.php.net This should be fixed. -Rasmus On Fri, 26 Jan 2001, Julia A . Case wrote: I'm having some trouble with PHP4 on a FreeBSD 3.2 machine. PHP3 compiles and works fine, but PHP4 gives a floating point error (both as a module and static). PHP4 under

[PHP] header problems

2001-01-26 Thread Kurth Bemis
when i put this header('location: $url'); i get this http://domain.com/$url what the hell am i doing wrong? -- 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,

[PHP] File upload error

2001-01-26 Thread Data Driven Design
I have a script that works fine on my server but gives this error on the server where I need it. Warning: File Upload Error - Unable to open temporary file [./php06339aaa] in /home/sites/site9/web/photo_admin/upload.php3 on line 138 Could someone point me in the right direction? Thanks. Data

Re: [PHP] setting register_globals off

2001-01-26 Thread Alex Black
Sort of along these lines, has anyone done tests to see if you can 100% ditch php.ini, and run all the php config info in httpd.conf? I'd much rather do it that way, I'd only have to maintain 1 file... _a On 1/25/01 1:36 AM, in article Pine.BSF.4.10.10101250910530.26823-10@localhost,

Re: [PHP] Best way to describe Doc as HTML

2001-01-26 Thread Alex Black
print "Content-type: text/html\n\n"; That's the "perl" method, because perl doesn't have any native functions for adding stuff to the response header, so you just print it :) header( "Content-type: test/html" ); The above is correct. _alex -- PHP General Mailing List

Re: [PHP] header problems

2001-01-26 Thread Teodor Cimpoesu
Kurth Bemis wrote: when i put this header('location: $url'); i get this http://domain.com/$url what the hell am i doing wrong? erm, header ("Location: $url"); [double quotes, so PHP will consider your dollars, yens or whatever] --teodor -- PHP General Mailing List

[PHP] Sybase

2001-01-26 Thread Rick Ridgeway
Can someone give me an example of a simple sybase query page? here is what i have: ? $server = "someserver"; $user = "sybuser"; $pass = "sybpass"; $query = "select * from SomeSillyTable where ThatSillyGuy='me'"; sybase_connect ($server, $user, $pass); sybase_query ($query); sybase_close (); ?

Re: [PHP] PHP on MAC

2001-01-26 Thread Michael A. Peters
On Friday, January 26, 2001, at 09:16 AM, lou wrote: You can't on os9. Sure you can. Its called webten http://www.webten.com/ and it supports php You have to run it on osX PB (or osx server I believe) Or you could go with a freely available operating system such as Linux. You can

Re: [PHP] Using a variable to select what variable to use...???

2001-01-26 Thread Steve Edberg
At 9:32 AM -0800 1/26/01, Brandon Orther wrote: Hello, I am doing a do loop and I want it to change what variable to use each run... First time use: $run1 Second time use: $run2 Third time use: $run2 I hope you can understand what I am saying. 'Variable variables'; see

Re: [PHP] PHP on FreeBSD 3.2

2001-01-26 Thread Julia A . Case
Thanks, it works now. Julia Quoting Rasmus Lerdorf ([EMAIL PROTECTED]): Try a snapshot from http://snaps.php.net This should be fixed. -Rasmus On Fri, 26 Jan 2001, Julia A . Case wrote: I'm having some trouble with PHP4 on a FreeBSD 3.2 machine. PHP3 compiles and works fine,

RE: [PHP] File upload error

2001-01-26 Thread Robert Collins
that sounds like a permissions error. check the permissions for all of the directories and the file along your path. -Original Message- From: Data Driven Design [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 1:04 PM To: [EMAIL PROTECTED] Subject: [PHP] File upload error I

[PHP] Check for Page

2001-01-26 Thread Karl J. Stubsjoen
How could I: How could I check to make sure a page exists before I redirect to it (a page within my own server, but page name passed in querystring - therefore it could be changed by client)? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] rand(), mt_rand(), and my inability to make either of them random.

2001-01-26 Thread Robert Collins
this is a function that I wrote to solve this problem, but it is almost impossible to get a truly random number you can get somthing pretty close by seeding with somthing like the time function, using the seconds since epoch and this should be hard to duplicate. ?php function

RE: [PHP] Check for Page

2001-01-26 Thread Robert Collins
Try this: ? $filename = "dat.txt"; if (file_exists($filename)){ echo "file exists"; } else { echo "file does not exist"; } ? Robert W. Collins Web Developer II Insight / TC Computers www.insight.com www.tccomputers.com -Original Message- From: Karl J. Stubsjoen

  1   2   >