[PHP] Templating help

2001-01-10 Thread Cameron
ok, im working on a simple and fast templating system for the website im recreating at the moment. im trying to make it so as the template file can be opened into a variable before it is passed to the parsing section so as i dont have to open the file 100 times etc. im not using fasttemplates

Re: [PHP] Ping

2001-01-10 Thread Tshering Norbu
Hello DaViper, Where do I get those 2 files from? The PHP I am running is 4.0.0 - Original Message - From: DaViper [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 3:07 PM Subject: Re: [PHP] Ping Code to show ping results on a webpage included in the 2

[PHP] Compiling php-3.0.18 with Openldap-2.0.7 support!

2001-01-10 Thread ndemeno
I'm trying to build php-3.0.18 as a shared module of Apache with support for openldap-2.0.7. It compiles, makes and installs without problems, but once I try to start apache it gives the following error: Cannot load /usr/local/apache/libexec/libphp3.so into server:

[PHP] include include_once, how do they work?

2001-01-10 Thread William Bailey
I have just been playing around with include and include_once with one of my classes, basicly there are a lot of functions inside this class so we have put the contance of the function into its own file (so that different people can work on it) and are useing the include function to call it.

[PHP] Problème

2001-01-10 Thread Abdelghani Mekhoukh
Monsieur, Premirement et avant tout je vous souhaite une bonne anne. Je suis un dbutant en PHP, et je veux l'installer comme un module dans le serveur web Apache mais j'ai rencontr des problmes. Je tiens vous signaler que je travaille sur la plate forme WINDOWS NT 4.0 SERVER. Pouvez vous s'il

Re: [PHP] Shopping Cart Schema - Sessions

2001-01-10 Thread Teodor Cimpoesu
Hi Jason! On Wed, 10 Jan 2001, Jason Beebe wrote: Hey, I'm looking for little information from those who have coded their own shopping cart apps. what would you say the best way to setup a cart would be? more specificly, the method for adding items to the cart. eww, lost wrapping ...

[PHP-CVS] cvs: php4 /ext/standard exec.c

2001-01-10 Thread Thies C. Arntzen
thies Wed Jan 10 05:08:14 2001 EDT Modified files: /php4/ext/standard exec.c Log: exec'd processes now get cleaned up even if the browser connections was aborted. fixes: #8143 Index: php4/ext/standard/exec.c diff -u php4/ext/standard/exec.c:1.44

[PHP] Fields to large for php3

2001-01-10 Thread Paul Lewis
I have an application that stores large text fields in MS SQL SVR and when they are entered on-line everything works fine. The problem begins when I try to retrieve them from the database and populate a field on the php3 on-line form. The query will only return the first 4096 byte of the

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Toby Miller
The editors that I usually use are Textpad and Jedit. I usually use Textpad as it's my favorite editor. Jedit is very similar to Textpad which is why it's my second favorite editor. The bonus of using Jedit is that it's written entirely in Java so it also runs in Linux (quite well too). You can

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Alexander Wagner
Toby Miller wrote: As far as Linux goes, Jedit is the only editor I've been able to find that compares against something like Textpad or UltraEdit. It should be stated here that vi (vim, gvim) and emacs (xemacs) belong to a different class of editor. If you know how to handle them (which may

Re: [PHP] Shorter way for each

2001-01-10 Thread Cynic
while( list( , $value ) = each( $my_array) ) or foreach( $my_array as $value ) At 16:16 10.1. 2001, Moritz Petersen wrote the following: -- Hi, is there a shorter way to do: while (list($key, $value) = each($my_array)) {

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Matthew Mundy
Has anyone mentioned Bluefish? I was using code crusader till I tried it yesterday. It blows away both jcc, emacs, xemacs, and gvim. ---Matt On Wed, 10 Jan 2001, Toby Miller wrote: The editors that I usually use are Textpad and Jedit. I usually use Textpad as it's my favorite editor. Jedit

Re: [PHP] Shorter way for each

2001-01-10 Thread Alexander Wagner
Moritz Petersen wrote: is there a shorter way to do: while (list($key, $value) = each($my_array)) { echo $value... } I just need the value! PHP3: while (list(, $value) = each($my_array)) { echo $value... } PHP4: foreach ($my_array as $value) { echo $value... }

RE: [PHP] to be persistent connected or not to be persistent connected

2001-01-10 Thread Jon Haworth
In your Apache httpd.conf, do you have the line KeepAlive On - this is the Apache directive to turn on persistent connections. You will also want to play with the MaxKeepAliveRequests directive, if you set it to 0 then it will allow an unlimited number of connections. There may be more to it

RE: [PHP] Calling a Windows Com object or an Extended Fetch?

2001-01-10 Thread Miles Thompson
Looks like we still have the famous MSFT definition of cross-platform: Windows, Windows 9x, Windows NT (and now Windows 2000). So, is this the clinching argument for CORBA, rather than COM? And I doubt the vaunted COM+ solves the problem. Miles At 09:42 AM 01/10/2001 -0600, Paulson, Joseph V.

RE: [PHP] Functions

2001-01-10 Thread Emil Rasmussen
Hi not the () after the function name function ShowMessage() { echo "Show message...\n"; } How can I call the function now? echo ShowMessage(); :: Emil --- Emil Rasmussen http://www.noget.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Shopping Carts

2001-01-10 Thread Chris Lee
I use sessions combinded with utc function mtime() { $mtime = microtime(); $mtime = ereg_replace('\.', '', $mtime); $mtime = explode(' ', $mtime); $mtime = $mtime[1] . $mtime[0]; return($mtime); } will ALLWAYS return a unique number, store this number in a session, each user

[PHP] Code diagnostics profiling

2001-01-10 Thread Guille -bisho-
Anymody knows any way of making diagnostics of PHP code to make optimizations??? In mod_perl exists a bunch of utilitys modules to make this things like Devel::DProf I usually put PHP in the maximun Warning level and write them to a log file, or using the debugger and see the output in other

Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread Max A. Derkachev
Hello sam1600, Wednesday, January 10, 2001, 7:44:44 PM, you wrote: $d-somevar = true; and the next call to $d-b() will print nothing. But you won't be able to assign a value to $somevar, if it is not declared in the class. sic This does not appear to be true. With error reporting set to

[PHP] Calling a funtion inside a function

2001-01-10 Thread Alan Todd
smime.p7m

Re: [PHP] Functions

2001-01-10 Thread Marcelo Gulin
Hi! ShowMessage(); regards Marcelo Gulin Augusto Cesar Castoldi escribi: How do I use a function? I did: function ShowMessage { echo "Show message...\n"; } How can I call the function now? thanks, Augusto Cesar Castoldi -- PHP General Mailing List

RE: [PHP] looking for a PHP editor

2001-01-10 Thread Miles Thompson
Cynic, I've never used version control -- other than saving as draft1, draft2, draft3 -- and there have been days I've wanted draft2.5. Is this something integral to the editor, or would a tool like CVS work? Versioning would be *good*. Miles At 07:26 PM 01/10/2001 +0100, Cynic wrote:

RE: [PHP] looking for a PHP editor

2001-01-10 Thread jeremy brand
Now only if a php-tidy existed ... Agreed. I've often thought about hacking 'indent' to recognice PHP syntax, but I never get around to it. Does anyone know if someone has done this already? Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]

RE: [PHP] looking for a PHP editor

2001-01-10 Thread Cynic
I mailed the author of UltraEdit, and he responded within 10 minutes, so I'm forwarding the reply. It turns out you _can_ actually make use of a version control system from within UE: There is a link on our Products page to Component Software's RCS version control software -

Re: [PHP] constants inside of a string

2001-01-10 Thread Toby Butzon
This reminded me of an issue I've kind of been contemplating for a couple of weeks now... I got sick of having to connect, query, check for errors, etc. every time I wanted to query a mysql database, so I wrote a function to do all of it for me... something like: function query_db($queryString,

[PHP] Session Errors, do you recognize?

2001-01-10 Thread JB
Hey, I keep getting the same error messages when trying to fire up sessions in this code i wrote. i've written some test scripts to test sessions on my machine, and they are working, so the problem must lie within my code. Here' what I'm getting, anyone know how to resolve this? Warning:

Re: [PHP] iptc fields

2001-01-10 Thread Thies C. Arntzen
On Wed, Jan 10, 2001 at 02:31:48PM +0100, Markus H. Maussner wrote: hi.. is there a solution how i can get all iptc fields out of an immage ? i tried the 'iptcparse' command wich works quiet well.. just that anny commas are taken out.. like from the original field 'red,dog,cat' i just

Re: [PHP] MySQL SELECT performance suggestions

2001-01-10 Thread Monte Ohrt
You don't need to select all the data to get the number of rows. Try this: select count(*) as total from products where $product_query; Then use total instead of num_rows. Be sure the elements in your where clause are properly indexed. [EMAIL PROTECTED] wrote: Could someone suggest some

Re: [PHP] Session Errors, do you recognize?

2001-01-10 Thread Shane McBride
Make sure that the ? that starts the php script is the VERY first line of the file, and that there are NO spaces before it anywhere. I had the same problem, I was used to html and even PHP being rather syntax flexible. As soon as I removed the spaces and extra line at the beginning of the file,

Re: [PHP] Session Errors, do you recognize?

2001-01-10 Thread JB
actually.. still give me the same error after i fixed that. new code as follows along with the error: if (!session_is_registered('cart')) { $cart = array(); session_register('cart'); } else { session_start(); } ? Warning: Cannot send session cookie - headers already sent by (output started at

RE: [PHP] PHP simulator

2001-01-10 Thread Cal Evans
there's an implementation of PHP for IIS. -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 4:15 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP simulator Is there a PHP simulator for NT? One that can be used for testing and development? Todd

RE: [PHP] PHP simulator

2001-01-10 Thread John Guynn
I just installed Apache, PHP, and MySQL onto my personal NT (ok Win2K) machine for testing and development. It was really simple...took less than an hour total to get working. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Todd Cary [mailto:[EMAIL

[PHP] rand is not random for me :(

2001-01-10 Thread Brandon Orther
When I use random rand(1, 10) I always get 2? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List

RE: [PHP] How can I get a random number

2001-01-10 Thread WreckRman2
? srand((double)microtime()*100); $id = rand(1,100); echo ("$id"); ? -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, January 10, 2000 5:14 PM To: PHP User Group Subject: [PHP] How can I get a random number How can I get a random

Re: [PHP] pause

2001-01-10 Thread Shane McBride
If you find something other than client side validation, let me know please. I had to resort to VBScript and I hate it! - Original Message - From: "jeremy brand" [EMAIL PROTECTED] To: "DanO" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 4:42 PM Subject: RE:

[PHP] PHP 4.0.4 / phpMyAdmin

2001-01-10 Thread Erica Douglass
I posted this to the phpMyAdmin support forum and emailed Tobias Ratschiller, but have heard no response. I am posting to this forum to try and resolve this problem. I had phpMyAdmin running successfully on my server. I then upgraded to PHP 4.0.4, and phpMyAdmin appears to have broken. The error

Re: [PHP] BIG include file !!!

2001-01-10 Thread Web Master
I don't think so, I have bunch of include files, which have more than 5000 lines and is running very fine. Abe wrote: Hey Guys, I am developing an application in PHP. I make use of an include file that contains regularly used functions. As I am working I am taking more and more of the

RE: [PHP] How can I get a random number

2001-01-10 Thread Cal Evans
Put a web cam on it and we've got a winner! :) Cal -Original Message- From: Monte Ohrt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 4:21 PM To: [EMAIL PROTECTED]; Brandon Orther Subject: Re: [PHP] How can I get a random number You can blow some ping pong balls around

Re: [PHP] PHP simulator

2001-01-10 Thread John Meyerhofer
Why just simulate it when you can run the real thing! Just download Apache for Windows and install as service. Then install PHP for Windows and with a little configuration you are set. I have been using this setup a while now as a "staging/testing" area before I upload my files to my website

Re: [PHP] MySQL SELECT performance suggestions

2001-01-10 Thread Christian Reiniger
On Wednesday 10 January 2001 20:58, [EMAIL PROTECTED] wrote: I have PHP perform SELECT queries on the table, and I need to display the results in a format of: "viewing $top to ($top+$depth) of $numrows found" I haven't found a way to determine $numrows without performing a second SELECT in

Re: [PHP] PHP newbie question

2001-01-10 Thread Hsieh, Wen-Yang
- Original Message - From: "Neil Zanella" [EMAIL PROTECTED] To: "Hsieh, Wen-Yang" [EMAIL PROTECTED] Cc: "PHP General Mailing List" [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 1:11 PM Subject: Re: [PHP] PHP newbie question On Wed, 10 Jan 2001, Hsieh, Wen-Yang wrote: "" is

Re: [PHP] php 4 isn't parsing php.3 files

2001-01-10 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: I have a SuSE 7.0 Linux install with apache and mod_php4. I can do .php files all day long, but I have a shopping cart thingie that is written for php3, and none of the files will parse. I have tested my machine with a phpinfo() php3 file, and no go on that either.

Re: [PHP] PHP simulator

2001-01-10 Thread Todd Cary
Toby - Did I completely miss the point? Yes and No. I have my Win 2K system in my office on which I do PHP development. However, sometimes I am on the road with a "simple" Notebook computer (450 MHz and 6 GHz drive). It would be nice to "play around" with PHP and see if it will run. Todd

Re: [PHP] PHP simulator

2001-01-10 Thread Todd Cary
John - That sounds feasible. I have always associated Apache with Unix/Linux; not Windows The install of PHP 4.0.4 on my Win 2K was an absolute breeze running IIS 5. What is Apache like in the Windows envirnoment? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General

Re: [PHP] PHP 4.0.4 / phpMyAdmin

2001-01-10 Thread Erica Douglass
Clarification: A quotation mark got left out after ['host'] = 'localhost in my original email. It is in the config.inc.php file and makes no difference in the error messages. The fix is below. Erica ""Erica Douglass"" [EMAIL PROTECTED] wrote in message 93indu$enk$[EMAIL

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Toby Butzon
Come on... mixing PHP and HTML in the same file isn't bad style... in fact it can make things easier to read, if you do it right. This is one of PHP's biggest features... otherwise we'd just have another Perl... ...my .02... --Toby - Original Message - From: "Alexander Wagner" [EMAIL

[PHP] ibase (firebird) localhost login ?

2001-01-10 Thread Chris Hayes
hi, I know it's slightly off topic but i hope you;ll forgive me. i'm testing interbase because someone on this list mentioned it would be a good offline database. Interbase ('firebird') wants to connect to the local server (i'm running WAMP - Windows, Apache, MySQL, PHP), and interbase needs

RE: [PHP] How can I get a random number

2001-01-10 Thread Jerry Lake
We may as we set it up in space to minimalize gravity and friction -can't be adding any predictable forces ;) Jerry Lake -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 3:19 PM To: Cal Evans Cc: [EMAIL PROTECTED] Subject: RE: [PHP] How

Re: [PHP] include path confusion

2001-01-10 Thread Brian Clark
Hello Randy, (R == "Randy") [EMAIL PROTECTED] writes: R How I think it SHOULD work is like DOS - First it looks at where R you say it is. If not there, it looks in the current directory. Let's not forget Unix. ;-) R If not there, it looks in the directories in the path. I'm sure PHP R

RE: [PHP] mixing HTML and PHP code

2001-01-10 Thread MR
Brian Clark ... Hello Alexander, (AW == "Alexander Wagner") [EMAIL PROTECTED] writes: Mmmmfff... ultraedit's wordlist file still lacks the color of allaire's homesite - it does detect which parts of the .php file are HTML and what parts of the file are PHP code, and colours

php-general Digest 10 Jan 2001 23:46:51 -0000 Issue 447

2001-01-10 Thread php-general-digest-help
php-general Digest 10 Jan 2001 23:46:51 - Issue 447 Topics (messages 33648 through 33844): Re: Shopping Cart Schema - Sessions 33648 by: Teodor Cimpoesu 33652 by: Paul K Egell-Johnsen 33682 by: JB 33694 by: JB 33696 by: Teodor Cimpoesu Re: Show

RE: [PHP] How can I get a random number

2001-01-10 Thread Jerry Lake
I'll go ahead and get that investment money rolling, as soon as I see my return from mindpixel...haha! I hear that MIR can be had for about the cost of a decent case of vodka though Jerry Lake -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10,

Re: [PHP] Funny running PHP4 on Apache, Windows 95

2001-01-10 Thread Brian Clark
Hello Patrick, (PD == "Patrick Dunford") [EMAIL PROTECTED] writes: PD I have this funny thing when running PHP 4 on Apache on Win95. If PD the script snip PD AddType application/x-tar .tgz PD AddType application/x-httpd-php3 .php3 PD AddType application/x-httpd-php3-source .phps

[PHP] FORM problem

2001-01-10 Thread Romulo Roberto Pereira
Hello! I am having a problem when people copy and paste text inside a TEXTAREA in a form that contains double quotes ' " ' . The first file is a simple form. The second one is a php script that treats the data from the user and stores in a MySQL table. Onyone has any ideas? I need to use

[PHP] 2d array?

2001-01-10 Thread Kurth Bemis
i'm confused by the method the go about this. i want to have a location: home / company / about on a page like server.com/company/aboutus.php i'm thinking that i can use an array containing the page name and then search the array and return the page title. now - how do i do this with an

Re: [PHP] mixing HTML and PHP code

2001-01-10 Thread Alex Black
uh, while I agree that including your html is definitely the way to go, you _must_ mix php with html to a certain extent, assuming you're actually doing anything interesting like talking to a database. if you're _only_ including files (i.e. using php as a replacement for SSI) I guess that would

Re: [PHP] 2d array?

2001-01-10 Thread Joe Stump
I'll give it a whirl ... $array_of_page_titles = array( 'aboutus.php' = 'All about our company', 'index.php' = 'Welcome to www.server.com!', 'foo.php' = 'I\'m a worthless script!' ); Then ... TITLE? echo $array_of_page_titles[$file]; ?/TITLE

Re: [PHP] pause

2001-01-10 Thread Alex Black
hey robert, have a look at binarycloud, with form builder, we take form input, check it, and return errors with the same form, input there and everything. if you want, you can have it do fancy stuff like carry over elements on multi page forms (a person forgets fo fill out one elemtn on a page,

Re: [PHP] Force variables to add

2001-01-10 Thread Jeff Warrington
In article [EMAIL PROTECTED], "Brandon Orther" [EMAIL PROTECTED] wrote: You will want to apply a cast to the variables to force the addition to be dealing with numbers. So, if $var1 = "2" and $var2 = "3", then $var3 = (int) $var1 + (int) $var2; print($var3); will show 5 see:

Re: [PHP] 2d array?

2001-01-10 Thread Toby Butzon
$file should be the name of the file - there is a PHP variable for this but I'm drawing a blank right now. How about __FILE__ ? ;) Note: it's a constant, so make sure you don't try to use a $ before it --Toby - Original Message - From: "Joe Stump" [EMAIL PROTECTED] To: "Kurth Bemis"

Re: [PHP] Code diagnostics profiling

2001-01-10 Thread Alex Black
hi Guillermo, as part of the binarycloud error handling infrastructure, we capture all errors on a page (that and sql queries + apache environment) and provide a module that you can (optionally) have print all of that stuff in your pages in an easy-to-read table. it has helped us quite a bit,

Re: [PHP] Shopping Carts

2001-01-10 Thread Alex Black
hi Brandon, we use php's session handing functions to set cookies, they are obviously hashed, etc before the values are sent. as part of the authentication system, we check to see that the user's client matches the last access with that session id, if not, we request a sign in. if you're not

Re: [PHP] Autonomous Mass Mail List System (Broadcast Email)

2001-01-10 Thread Joe Stump
Sure - I did this with qmail. In your .qmail file or any file that passes the incoming mail to /dev/stdin you need to pipe it to a php script. It will look like this: ? $fp = fopen('/dev/stdin','r'); while(!feof($fp)) { $line = trim(fgets($fp,4096)); if(ereg("^From:",$line)) {

Re: [PHP] FORM problem

2001-01-10 Thread Joe Stump
Have you tried looking at addslashes() ??? Or am I not understanding the problem here. Just remember to deliminate the "'s and ''s before entering them into the db. --Joe On Wed, Jan 10, 2001 at 08:19:24PM -0500, Romulo Roberto Pereira wrote: Hello! I am having a problem when people copy

Re: [PHP] SSH file transfers

2001-01-10 Thread Alex Black
write a lib that can call scp :) -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 From: [EMAIL PROTECTED] ("Nando2")

[PHP] How to add a user of LDAP?

2001-01-10 Thread Huang Wenhai
I want to add a user of my Netscape Messaging server(ldap) with php,who can give me a example of such using,including userid,password,email and so on! Thanks a lot! my email address: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] writes: BC Likewise, if you get into the habit of doing ? ? or ? ? in BC tandem, your worries will soon disappear. P.S. a decent editor that has *good* syntax highlighting (Ie. different schemes for HTML, JavaScript and PHP highlighting in the same

[PHP] case ?

2001-01-10 Thread Jon Rosenberg
I know this is kinda silly. but, if I have the following, will the file only be included when the case is matched or does require always bring in the file regarless? case blah: require('include.php'); do something break;

Re: [PHP] Apache error after setting path for mysql=

2001-01-10 Thread Brian Clark
Hello Shane, (SR == "Shane Reid") [EMAIL PROTECTED] writes: SR I reconfigured php with ./configure SR --with-mysql=/usr/local/etc/mysql SR --with-apxs=/usr/local/etc/apache/bin/apxs and apache will no SR longer start. I removed the path from the mysql to get the SR webserver back up but my

Re: [PHP] case ?

2001-01-10 Thread Dean Hall
I know this is kinda silly. but, if I have the following, will the file only be included when the case is matched or does require always bring in the file regarless? case blah: require('include.php'); do something break; Pretty sure it depends on whether your file system is

Re: [PHP] case ?

2001-01-10 Thread Brian Clark
Hello Jon, (JR == "Jon Rosenberg") [EMAIL PROTECTED] writes: JR I know this is kinda silly. but, if I have the following, will the JR file only be included when the case is matched or does require JR always bring in the file regarless? That is *supposed* to be the way it works. That is

[PHP] Re-engineering print()

2001-01-10 Thread Kristofer Widholm
Hi, I'm involved in a conundrum that is a little difficult to explain with plain English. Perhaps some PHP code will help you understand what I am attempting: #Option 1: code I wish worked $s = include("phpcode.php"); #Option 2: also code I wish worked $s = sprintf("%s",

[PHP] Re-engineering print()

2001-01-10 Thread Kristofer Widholm
Hi, I'm involved in a conundrum that is a little difficult to explain with plain English. Perhaps some PHP code will help you understand what I am attempting: #Option 1: code I wish worked $s = include("phpcode.php"); #Option 2: also code I wish worked $s = sprintf("%s",

[PHP] Exponents

2001-01-10 Thread Ian LeBlanc
Hey guys this one might be simple for ya.. how do you get a exponent of a verable.. example... ? $Value = 4; $Exponent = 2; $Equals = 1E$Exponent + $Value; PRINT ("Equals"); ? shoudl be simple.. i have tried all kinds of things.. please help Ian LeBlanc 2tonecafe.com Admin 727-517-3866 You

Re: [PHP] Exponents

2001-01-10 Thread Brian Clark
Hello Ian, (IL == "Ian LeBlanc") [EMAIL PROTECTED] writes: IL Hey guys this one might be simple for ya.. IL how do you get a exponent of a verable.. example... ?php $value = 4; $exponent = 2; $equals = pow($value, $exponent); print($equals); ?

Re: [PHP] Exponents

2001-01-10 Thread Josh G
exp(num,pow) i do believe. of course this is off the top of my head Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "Ian LeBlanc" [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] SSH file transfers

2001-01-10 Thread Kyle Jerviss
Yeek! Not quite what I meant. I don't think that web servers have any business being on windows boxes. I was wondering if there were a way to upload using something like scp from a windows (or other) browser to a unix server. bard wrote: the people who make putty (my favorite ssh client

RE: [PHP] case ?

2001-01-10 Thread Maxim Maletsky
'require' ALWAYS includes the file; 'include' is what you want here. not since v4.0.2(?) came out ... I heard from Zeev that require() and include() behave now just about the same. Read our posting regarding this topic of 1-2 month ago.. Cheers, Maxim Maletsky The tradeoff is that include is

RE: [PHP] case ?

2001-01-10 Thread Maxim Maletsky
here we go, from Zeev: As of PHP 4.0.3, the implementation of require() no longer behaves that way, and processes the file 'just in time'. That means that in the 1st example, the file will be processed a hundred times, and in the 2nd example, it won't be processed at all. That's the way

RE: [PHP] case ?

2001-01-10 Thread Steve Edberg
At 2:29 PM +0900 1/11/01, Maxim Maletsky wrote: here we go, from Zeev: As of PHP 4.0.3, the implementation of require() no longer behaves that way, and processes the file 'just in time'. That means that in the 1st example, the file will be processed a hundred times, and in the 2nd

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-10 Thread Rasmus Lerdorf
rasmus Wed Jan 10 22:06:03 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: More people for the documentation team Index: CVSROOT/avail diff -u CVSROOT/avail:1.27 CVSROOT/avail:1.28 --- CVSROOT/avail:1.27 Tue Jan 9 15:46:44 2001

Re: [PHP] Re-engineering print()

2001-01-10 Thread Toby Butzon
Look into output buffering (ob_* functions). You wouldn't want to do that with your whole script; but there is an example (if not in the manual it's on zend I believe) so you can assign the results (what would've been outputted to the browser without the buffering) to a variable. --Toby -

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
$s = system ("/usr/local/whatever/php/bin/php /path/to/your/file.php"); This should be what you're after. In PHP4 there _may_ be some way to use the inbuilt buffering for that purpouse, but I doubt it. Perhaps this could be added to the language? It would be a good counterpart to eval()...

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
If the system() doesn't return something, try using the backticks (left of the 1 key) like so: $s = `/path/to/php /path/to/yourfile.php`; Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message

Re: [PHP] Re-engineering print()

2001-01-10 Thread Matt McClanahan
On Wed, 10 Jan 2001, Kristofer Widholm wrote: Basically, I'm wondering if there is a way to redirect print and echo output from PHP to a variable instead of directly to a browser or file stream. What I'm trying to do is create code that can generate an HTML page to a variable that I can

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
Cool, didn't think you could do that. Well never mind me then ;-) Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "Matt McClanahan" [EMAIL PROTECTED] To: "Kristofer Widholm"

Re: [PHP] Re-engineering print()

2001-01-10 Thread Rasmus Lerdorf
Try this: function my_eval($code) { ob_start(); eval($code); $retval = ob_get_contents(); ob_end_clean(); return $retval; } $str = my_eval("echo 2+2;"); echo $str; -Rasmus On Thu, 11 Jan 2001, Kristofer Widholm wrote: Here's what you wrote, 01-01-11: $s = sprintf("%s",

RE: [PHP] How to add a user of LDAP?

2001-01-10 Thread Maciek Uhlig
You might want to look at http://www.zend.com/codex.php?id=113single=1 Maciek -Original Message- From: Huang Wenhai [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:53 AM To: [EMAIL PROTECTED] Subject: [PHP] How to add a user of LDAP? I want to add a user of my

Re: [PHP] Re-engineering print() - PHP 4 required

2001-01-10 Thread Kristofer Widholm
Here's what you wrote, 01-01-10: Try this: function my_eval($code) { ob_start(); eval($code); $retval = ob_get_contents(); ob_end_clean(); return $retval; } $str = my_eval("echo 2+2;"); echo $str; Mr. Lerdorf, Mr. McClahahan, Mr. Butzon et al, Thank you for your replies.

Re: [PHP] Im having Trouble with File uploading,

2001-01-10 Thread Richard Lynch
"C:\nusphere\apache\htdocs\morgan\php\database\CMS\pdf"); This string contains a newline... You need \\ on each of those, or just use / and I think it will make everybody happy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Session cookie expiration

2001-01-10 Thread Richard Lynch
There are settings in php.ini for that, I think... - Original Message - From: Michal Thomka [EMAIL PROTECTED] Newsgroups: php.general Sent: Wednesday, January 10, 2001 4:24 AM Subject: [PHP] Session cookie expiration I am working on an aplication which uses sessions, and I would

Re: [PHP] strip_tags ?

2001-01-10 Thread Richard Lynch
I don't think it looks for specific HTML tags to strip. Anything that looks like xxx or /xxx is going to get yanked. In other words, it strips *EVERY* HTML tag, no matter how obscure. - Original Message - From: "Jon Rosenberg" [EMAIL PROTECTED] Newsgroups: php.general Sent:

Re: [PHP] Cannot send session cache limiter - headers already sent Cannot send session cookie - headers already sent by

2001-01-10 Thread Richard Lynch
I think you want to do more like this: session_start(); if (!session_is_registered('cart')){ session_register('cart'); $cart = array(); } - Original Message - From: "JB" [EMAIL PROTECTED] Newsgroups: php.general Sent: Wednesday, January 10, 2001 3:43 PM Subject: [PHP] Cannot

Re: [PHP] Each site with its php.ini?

2001-01-10 Thread Richard Lynch
Hi. Does anybody knows how to have different configuration options, that is, different php.ini files, for several different sites that reside on the same server? I have IIS and the CGI version of PHP 4.04. H... I dunno how IIS does Virtual Hosting, but maybe you could have a different

Re: [PHP] ibase (firebird) localhost login ?

2001-01-10 Thread Richard Lynch
Most dbs use "localhost" for that, and the database username/password that is configured into the database software/tables... I know nothing of Interbase, but that's how all the others work... If "localhost" doesn't work for the host, try "127.0.0.1" - Original Message - From: "Chris

Re: [PHP] Running an .exe on localhost

2001-01-10 Thread Richard Lynch
Can somebody please give me a starter in trying to run a local application (.exe) from a html button eg. Does it involve exec() or system() ? And if so, could somebody give me an example. I'm too dim to learn any other way ;) exec("C:/program files/whatever/full/path/something.exe", $output,

Re: [PHP] unique id

2001-01-10 Thread Richard Lynch
*WHY* not use auto_increment? Would the builtin http://php.net/uniqid function not work better? *NEVER* seed the random number generator more than once per script. Call srand() once, and only once. The return() statement will return the MySQL resource ID, which is probably not useful, but all

Re: [PHP] Serving files form DB

2001-01-10 Thread Richard Lynch
You could save yourself a whole lot of headaches by putting the files in the file-system, and storing only the path in the database... Also, IE and Netscape use different things to populate the filename box on the download dialog... One uses Content-disposition header(), and one uses whatever

Re: [PHP] Discussion board recommendation

2001-01-10 Thread Richard Lynch
Phorum? - Original Message - From: "H. Wade Minter" [EMAIL PROTECTED] Newsgroups: php.general Sent: Tuesday, January 09, 2001 2:36 PM Subject: [PHP] Discussion board recommendation -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm looking for a PHP/MySQL-or-Postgres based

[PHP] Attaching to a PostgreSQL database on a Linux box from a VB app on NT4

2001-01-10 Thread Brinkman, Theodore
I think the subject pretty much says it all. I need help setting up things on both ends to let a VB app (on Windows, obviously) connect to a PostgreSQL database on a Linux box. Any help appreciated. - Theo Sorry about cross-posting to the two lists, but I figured it was pertinent to

  1   2   >