[PHP] how to change from php Apache module to php CGI?

2001-03-18 Thread Chris Chan
I need the suexec feature. so i recompile the php4 to cgi. but i have hundreds of php scripts under the existing web site. it's not a easy task to add the line #!/usr/local/bin/php to each php file. Anyone know is there any easy way to configure the httpd.conf without modify hundreds of php

RE: [PHP] how to change from php Apache module to php CGI?

2001-03-18 Thread Jack Dempsey
If you can't modify apache to do what you need, you could always write a perl script to open up every file named *.php and add the line to the topit wouldn't be that hard, especially if you have any experience with perl... -Original Message- From: Chris Chan [mailto:[EMAIL

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

2001-03-18 Thread Jani Taskinen
sniper Sun Mar 18 01:25:40 2001 EDT Modified files: /php4/ext/fdf fdf.c Log: Prevent mem leak Index: php4/ext/fdf/fdf.c diff -u php4/ext/fdf/fdf.c:1.41 php4/ext/fdf/fdf.c:1.42 --- php4/ext/fdf/fdf.c:1.41 Sat Mar 17 21:52:40 2001 +++

Re: [PHP] command that gives current location of script

2001-03-18 Thread Aviv Revach
Hey! You could use 'phpinfo()' to find what you seek. $PHP_SELF does give you the current location of the php script, but with 'phpinfo()' you could read about other values that supply miscellanies related information. ?php phpinfo(); ? Best Regards - Aviv

Re: [PHP] Benchmarks

2001-03-18 Thread Zeev Suraski
It's much more than that. Perl doesn't cache compiled scripts either, or rather, its caching is extremely limited, and IMHO pretty much unusable (e.g., you have to restart the server every time a script changes). PHP alone is as fast as Perl (and slightly faster, as the benchmarks show).

Re: [PHP] Expire data from form

2001-03-18 Thread Data Driven Design
You can use javascript and set the history length to 0 script language="javascript" !-- history.length=0; // -- /script - Original Message - From: Sheni R. Meledath [EMAIL PROTECTED] To: PHP Masters [EMAIL PROTECTED] Sent: Saturday, March 17, 2001 11:47 PM Subject: [PHP] Expire data

Re: [PHP] Zend?

2001-03-18 Thread Sharon Rozenbaum
Hi Chris, The Zend Encoder does what you've described (compiles your php script so if you look at the source, you see just "garbage"). To encode files with the Zend Encoder, you don't need anything but the Encoder itself. To run the encoded files you need to have the Zend Optimizer. The people

Re: [PHP] form post without pathinfo

2001-03-18 Thread Clayton Dukes
Yeah, I just can't figure out how to do it. Anyone care to enlighten me? Clayton Dukes - Original Message - From: Chris Anderson To: Clayton Dukes Sent: Wednesday, March 14, 2001 1:04 PM Subject: Re: [PHP] form post without pathinfo Sounds like you just need to

php-general Digest 18 Mar 2001 15:07:16 -0000 Issue 574

2001-03-18 Thread php-general-digest-help
php-general Digest 18 Mar 2001 15:07:16 - Issue 574 Topics (messages 44422 through 44436): Re: Anyone good with Java?? 44422 by: Dennis Gearon 44423 by: Ryan Grove Editing Variables from another script. 44424 by: techzeus.pacific.net.sg Re: urlencode 44425

Re: [PHP] how do i get a variable type?

2001-03-18 Thread rm
PHP, at least php 3.x, has a series of fuctions like is_string, is_integer, is_array etc. I know they're there...I don't us them so I don't know exactly where...this might be what you're looking for... rm --- phpman [EMAIL PROTECTED] wrote: hello all, let's say i have this:

Re: [PHP] phpMyAdmin edit function not working

2001-03-18 Thread Oktay Altunergil
if you're using Windows. Check out phpfront at the address below. I must accept that I don't completely understand your problem, but I found this software to be more usable than the phpMyAdmin. (if your code has to know when a field's value in the database is 'NULL' you may have problems with

Re: [PHP] how to change from php Apache module to php CGI?

2001-03-18 Thread Oktay Altunergil
#from httpd.conf #For PHP/FI (PHP2) as a cgi binary Addtype application/x-httpd-php2 .php .php2 Action application/x-httpd-php2 /cgi-bin/php.cgi This works for the php2 cgi installation. It might work for php3,4 as well. oktay - Original Message - From: "Chris Chan" [EMAIL

[PHP] multiple post what the hey

2001-03-18 Thread PHPretard
Is it just me or are they like double and triple post from everyone? whats going on? its iritating having to delete alot of message _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing

[PHP] Re: confirm unsubscribe from php-general@lists.php.net

2001-03-18 Thread Bob DeBolt
Original Message On 3/18/01, 9:56:16 AM, [EMAIL PROTECTED] wrote regarding confirm unsubscribe from [EMAIL PROTECTED]: Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. To confirm that you would like [EMAIL PROTECTED] removed from the php-general

[PHP] Q - php-apache _ php-cgi

2001-03-18 Thread Bart A. Verbeek
Hello, I'm kind of new to serverside management and got a little question. PHP can run on a server in different ways; as an Apache-module and as a cgi-module. - What is the biggest diffence between these two ways of running? - When I write scripts for both do I have to pay attention to something

[PHP] PHP script locations

2001-03-18 Thread Paul O'Neil
Dumb question here but where does one typically keep there PHP form scripts, like web/index.htm images/image.jpg phpscripts/login.php cgi-bin/perlscript.pl secure/secureforms.here Is there a problem keeping everything in the WEB directory, is it a security issue or management of files issue?

[PHP] Re: Anyone good with Java??

2001-03-18 Thread Chris Anderson
Close, But I meant this: drop downs have Dogcatfish if I select Dog from the first box the rest contain catfish but if I chnage it to fish the others would have dogcat - Original Message - From: "Dennis Gearon" [EMAIL PROTECTED] To: "Chris Anderson" [EMAIL PROTECTED]; "PHP" [EMAIL

[PHP] Source Protection

2001-03-18 Thread Chris Anderson
After realizing that The Zend Encoder is 2000$ I've decided that wont work for a college student(me). Is there any other way to protect source in my components?

[PHP-CVS] cvs: php4 /ext/midgard php_midgard.h

2001-03-18 Thread Alexander Bokovoy
ab Sun Mar 18 10:29:55 2001 EDT Modified files: /php4/ext/midgard php_midgard.h Log: Update includes to the way CVS now works Index: php4/ext/midgard/php_midgard.h diff -u php4/ext/midgard/php_midgard.h:1.8 php4/ext/midgard/php_midgard.h:1.9 ---

[PHP-CVS] cvs: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Öhrn
ohrnSun Mar 18 10:32:58 2001 EDT Modified files: /php4/ext/cpdf php_cpdf.h Log: Solved compile failure due to clash bewteen IMAP and ClibPDF headers. Index: php4/ext/cpdf/php_cpdf.h diff -u php4/ext/cpdf/php_cpdf.h:1.6 php4/ext/cpdf/php_cpdf.h:1.7

[PHP] how do i get a variable type? - not that simple

2001-03-18 Thread phpman
No guys. that doesn't work. Take this code for example... $a="3"; echo(gettype($a)); this returns string i need to find it as an integer or real or float for the sql. which by the way is MySQL. thank you for responding, but I already know that gettype and all the other is_* don't work for

RE: [PHP-CVS] cvs: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread James Moore
Modified files: /php4/ext/cpdfphp_cpdf.h Log: Solved compile failure due to clash bewteen IMAP and ClibPDF headers. Does this need to be in 4.0.5 release?? if so please merge it into the release branch (PHP_4_0_5). James -- PHP CVS Mailing List (http://www.php.net/) To

[PHP] Problems with multiple query

2001-03-18 Thread Luca Lazzeroni
Hi, I've recently migrated a system with PHP 4.0.3pl1 and PostgreSQL 7.0.2 - RedHat Linux 5.1 (yes 5) to a new one with PHP 4.0.4pl1 - PostgreSQL 7.0.2 - RedHat Linux 7.0. All my database applications work fine except one which does strange things: this is a piece of code: 8--- CUT

RE: [PHP-CVS] cvs: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Ohrn
On Sun, 18 Mar 2001, James Moore wrote: Modified files: /php4/ext/cpdf php_cpdf.h Log: Solved compile failure due to clash bewteen IMAP and ClibPDF headers. Does this need to be in 4.0.5 release?? if so please merge it into the release branch (PHP_4_0_5). James Yes,

RE: [PHP] how do i get a variable type? - not that simple

2001-03-18 Thread Johnson, Kirk
How about a regex check for numeric characters with and without a decimal point (and no leading zeros), versus alphanumerics? Just an "off the top of my head suggestion", back to work... Kirk -Original Message- ""phpman"" [EMAIL PROTECTED] wrote in message 99132e$ol8$[EMAIL

Re: [PHP] how do i get a variable type? - not that simple

2001-03-18 Thread Rick St Jean
I would right a function that would return a result and try an match within the different types. if (isdate($a)) { Dtype = date; } if (isdigit($a)) { Dtype = int; } return (Dtype); etc.. At 01:44 PM 3/18/01 -0500, phpman wrote: No guys. that doesn't work. Take this code for example...

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Öhrn
ohrnSun Mar 18 10:45:25 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/cpdf php_cpdf.h Log: Solved compile failure due to clash between IMAP and ClibPDF headers. Index: php4/ext/cpdf/php_cpdf.h diff -u php4/ext/cpdf/php_cpdf.h:1.6

Re: [PHP] how do i get a variable type? - not that simple

2001-03-18 Thread Mark Charette
Personally I'd perform a query into MySQL and get what _it_ thinks the values should be ... before doing anything else. It allows generality in your error checking code. Look at mysql_list_fields() et al. mark C. - Original Message - From: "phpman" [EMAIL PROTECTED] To: [EMAIL

[PHP] Good Free PHP Editor - And it's not Edit Plus!

2001-03-18 Thread James Crowley
Dear All, Given the recent discussion regarding a PHP editor, I thought you would like to know that VB Web Development have finally released Developers Pad BETA 2. This program is open source, and free. It's features include syntax highlighting (fully customizable), powerful project

Re: [PHP] Problems with multiple query

2001-03-18 Thread Nuno Silva
Hello, if the second query loops inside a _for_ statement and needs values from the first query you have two options: 1. save all the results from query one to some array and then loop inside the array within the _for_ statement executing new sql; 2. open two separate connections to the

RE: [PHP] update two frames at once?

2001-03-18 Thread Maron Kristófersson
I don't know if this is possible in PHP don't think so but you can do some very nifty things using JavaScript. Let's say you got two frames named links and main. Then you can for example do something like this in a page called contacts.php in the main frame body class="main"

Re: [PHP] Combining Perl and PHP

2001-03-18 Thread Henrik Hansen
"Matthew Hanna" [EMAIL PROTECTED] wrote: Has anyone heard of calling Perl libraries from PHP? I have seen it done with Java classes but it would be great if there was a way to do it with Perl. The only thing i can think of is virtual() and exec(), take a look at those. -- Henrik Hansen

Re: [PHP] TraceRoute

2001-03-18 Thread Henrik Hansen
"Mick" [EMAIL PROTECTED] wrote: Hi, Anyone able to tell me where i can get a traceroute php script from? http://www.google.com/search?q=php+traceroute+scripthl=dalr= -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] TraceRoute

2001-03-18 Thread Kath
I tried emailing him 5 times with this, but I could never get through :| I even found the script for him and tried to send it to him :| - Kath - Original Message - From: "Henrik Hansen" [EMAIL PROTECTED] To: "Mick" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, March 18, 2001

Re: [PHP] TraceRoute

2001-03-18 Thread Henrik Hansen
"Kath" [EMAIL PROTECTED] wrote: I tried emailing him 5 times with this, but I could never get through :| I even found the script for him and tried to send it to him :| - Kath heh i got an error too, lets just hope he read the group :) -- Henrik Hansen -- PHP General Mailing

[PHP-CVS] cvs: php4 /ext/yp CREDITS php_yp.h yp.c

2001-03-18 Thread Fredrik Öhrn
ohrnSun Mar 18 14:16:46 2001 EDT Modified files: /php4/ext/ypCREDITS php_yp.h yp.c Log: Much needed cleanup and new functions added --- Cleaned up stringhandling for binary safeness. All functions

[PHP] newline in preg_split

2001-03-18 Thread Jesper Blomström
Hi! I have text file looking something like this: core 010105 business 070344 core 020202 ... The textfile is a result from a database question and I am trying to parse the file in order to retrieve each line. I have tried using the explode()-method but I can´t get it to work with the

Re: [PHP] newline in preg_split

2001-03-18 Thread Ville Mattila
Hello, If you read the file with file()-function, you can get as a result an array which includes each row of the file. For example: $rows = file("c:\thisfile.txt"); echo $rows[0]; echo $rows[1]; echo $rows[2]; The result should be now like following: core 010105 business 070344 core 020202

Re: [PHP] MIME and headers

2001-03-18 Thread Manuel Lemos
Hello Peter, On 06-Mar-01 21:11:00, you wrote: Can some one please tell me what the relationship between mime and email headers is I have not been able to find a straight answer off the net ..so if any one knows of a good site can you please give me the url so i can look at it .. thanks

Re: [PHP] dymanic forms

2001-03-18 Thread Manuel Lemos
Hello george, On 06-Mar-01 09:16:39, you wrote: I am trying to build a form which can be geberated dynamically by the user selecting the number of fields up to a max of 10. Maybe you would like to try this PHP class that lets you generate forms programmatically.

[PHP] PHP MYSQL BOOKS

2001-03-18 Thread YoBro
Hello, Does anybody know any good books websites to recommend for PHP MySql together. I am looking to advance my knowledge and would really appreciate a helpful tip. Really looking for a book that explains all the advanced features of PHP4 and MySql as a compliment. Regards, YoBro

RE: [PHP] PHP MYSQL BOOKS

2001-03-18 Thread Jason Lotito
-Original Message- From: YoBro [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 3:13 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP MYSQL BOOKS Hello, Does anybody know any good books websites to recommend for PHP MySql together. I am looking to advance my knowledge

Re: [PHP] PHP MYSQL BOOKS

2001-03-18 Thread eschmid+sic
On Sun, Mar 18, 2001 at 06:43:27PM -0800, Jason Lotito wrote: From: YoBro [mailto:[EMAIL PROTECTED]] Does anybody know any good books websites to recommend for PHP MySql together. I am looking to advance my knowledge and would really appreciate a helpful tip. Really looking for a

[PHP] Arrays in Classes

2001-03-18 Thread Richard S. Crawford
I'm quite new at object-oriented programming in PHP. Here's what I want to do. I want to create a class of objects called "lists". The properties I want to have for list objects include: owner of the list number of items in the list the list itself Each item in

[PHP] submission of 1..N variables

2001-03-18 Thread Ekkard Gerlach
Hi, n variables reach my php-programm by submission: A0 A1 ... An Depending on Ai is set I want to run some actions. How can I evaluate Ai ?? if (isset (A1) then # entrance { i=0; while( isset($Ai)) { /* Of course $Ai is not working !!! */ { $B= $Ai ...

Re: [PHP] Good Free PHP Editor - And it's not Edit Plus!

2001-03-18 Thread news.php.net
just a note: afaik editplus is no freeware. -- (::sebas::) ___ www.nijmegen.de sebas.tweakers.net www.weblab-online.de ""James Crowley"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear All, Given the

Re: [PHP] Undefined Variable

2001-03-18 Thread David Robley
On Sun, 18 Mar 2001 00:13, Jorge Alvarez wrote: Hi there, I get this error every time I try to use a variable that has not been declared. Is this new to PHP4? I do not recall this error in the past, echo $MYVAR echoed nothing if $MYVAR was not set but no error was raised. How can I revert

[PHP] dynamically change a variable name

2001-03-18 Thread Gary
Is there a way to dynamically change a variable name? For example: I want to change the variable name $DWG to $DWG1 $DWG2 $DWG3 with a for loop. Is there a way to do this? Thanks, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] pulldown population not getting the last value

2001-03-18 Thread Tom Beidler
I'm trying to create a pulldown menu with distinct names from the found set. For some reason I never get the last name. Here's my code; $contact_query = "SELECT DISTINCT name FROM request" . " WHERE id = '5' OR demo_id = '$demo_id'" . " ORDER BY name";

Re: [PHP] Expire data from form

2001-03-18 Thread Paul R. Jackson
Sheni, I needed to do a similar thing as this. When creating the form have a hidden value which is the current time. The when procesing the form check the time. If its to old just say page expired. I found this worked fine. Hope this helps. Paul ""Sheni R. Meledath"" [EMAIL PROTECTED] wrote

Re: [PHP] multiple post what the hey

2001-03-18 Thread Paul R. Jackson
I think its just you I think its just you :) ""PHPretard"" [EMAIL PROTECTED] wrote in message 000b01c0afca$8934b000$1983bc18@pixeldesire">news:000b01c0afca$8934b000$1983bc18@pixeldesire... Is it just me or are they like double and triple post from everyone? whats going on? its iritating

[PHP] just wondering ....

2001-03-18 Thread Peter Houchin
If I have a email script and use the mail() function ... am i able to do this .. mail(values); if ($mail=1){ do this } else { error } is that possible? if not could some one suggest a way i could get the same effect? Thanks Peter Houchin [EMAIL PROTECTED]

[PHP] Can PHP for Oracle randomly access rows in a result set?

2001-03-18 Thread Andrew Halliday
Can PHP for Oracle randomly access rows in a result set? I have read documentation for both Oracle functions (ora_*) and Oracle 8 functions (OCI_*) but cant seem to find a way to randomly access rows in a result set like you can with PostgreSQL or MySQL ... whats the story here?! Are we FORCED

Re: [PHP] just wondering ....

2001-03-18 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] ("Peter Houchin") wrote: If I have a email script and use the mail() function ... am i able to do this .. mail(values); if ($mail=1){ do this } else { error } Are you trying to test whether mail() returned true? if (mail(values)){ do

[PHP] Tables with scroll in HTML?

2001-03-18 Thread Jose Antonio
Is any way to make a dinamic table with its own scroll? I'm trying make a table/form with a checkbox in every row and a submit button, but, when the table becomes long, I have to scroll down ALL the page to find the SUBMIT button. When you have make this operaton 3 times, it becomes bored. I

RE: [PHP] just wondering ....

2001-03-18 Thread Peter Houchin
What am going to try do is get it so mail() returns true then run this script else do this Peter -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 2:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] just wondering In article [EMAIL PROTECTED],

Re: [PHP] just wondering ....

2001-03-18 Thread David Robley
Followups moved to bottom of message for legibility! -Original Message- In article [EMAIL PROTECTED], [EMAIL PROTECTED] ("Peter Houchin") wrote: If I have a email script and use the mail() function ... am i able to do this .. mail(values); if ($mail=1){ do this }

php-general Digest 19 Mar 2001 03:17:37 -0000 Issue 575

2001-03-18 Thread php-general-digest-help
php-general Digest 19 Mar 2001 03:17:37 - Issue 575 Topics (messages 44437 through 44478): Re: how do i get a variable type? 44437 by: rm Re: phpMyAdmin edit function not working 44438 by: Oktay Altunergil Re: how to change from php Apache module to php CGI? 44439

RE: [PHP] just wondering ....

2001-03-18 Thread Peter Houchin
snip On Mon, 19 Mar 2001 01:34, Peter Houchin wrote: What am going to try do is get it so mail() returns true then run this script else do this Peter Like most functions in PHP, mail() returns a value - boolean according to the manual. So you could do something like $mail =

Re: [PHP] Tables with scroll in HTML?

2001-03-18 Thread Adi Wibowo
On Mon, 19 Mar 2001, Jose Antonio wrote: I have tryed to make several frames, but, if a put the submit button in a diferent frame, how can i know wich are the selected rows of the form in the other frame? I use IFRAME (for more flexibility than FRAME) and session's variables to store

RE: [PHP] TraceRoute

2001-03-18 Thread David Smith
This would be because his email shows [EMAIL PROTECTED] Hint the -nospam at the end. I don't know why people do this and then ask for help because when someone offers the help the email bounces... David Smith -Original Message- From: Henrik Hansen [mailto:[EMAIL PROTECTED]]

[PHP] headers_sent

2001-03-18 Thread Clayton Dukes
What's the proper syntax for headers_sent? I tried: if(!isset(headers_sent)) { include("header.php"); } But I get: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/www/websites/pw/cisco/config/index.htm on line 3 Clayton DukesCCNA, CCDA, CCDP, CCNPInternetwork

RE: [PHP] headers_sent

2001-03-18 Thread Jack Dempsey
don't you need the () after headers_sent? if(!isset(headers_sent()){include("header.php");} haven't tried it but i'd think that would work jack -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 11:38 PM To: [EMAIL PROTECTED] Subject:

Re: [PHP] headers_sent

2001-03-18 Thread Clayton Dukes
Thanks :-) - Original Message - From: "Jack Dempsey" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Clayton Dukes" [EMAIL PROTECTED] Sent: Monday, March 19, 2001 12:08 AM Subject: RE: [PHP] headers_sent don't you need the () after headers_sent?

RE: [PHP] headers_sent

2001-03-18 Thread Jack Dempsey
[this is his reply] -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 12:08 AM To: Jack Dempsey; [EMAIL PROTECTED] Subject: Re: [PHP] headers_sent Thanks :-) - Original Message - From: "Jack Dempsey" [EMAIL PROTECTED] To: [EMAIL

Re: [PHP-CVS] cvs: php4 /ext/yp CREDITS php_yp.h yp.c

2001-03-18 Thread Andi Gutmans
Seems to me that you can nuke the following as it will always be done in RINIT: +static void php_yp_init_globals(YPLS_D) +{ + YP(error) = 0; +} + +PHP_MINIT_FUNCTION(yp) +{ +#ifdef ZTS + yp_globals_id = ts_allocate_id(sizeof(php_yp_globals), (ts_allocate_ctor) php_yp_init_globals,

Re: [PHP] metabase docs and DB abstraction

2001-03-18 Thread Manuel Lemos
Hello Dean, On 17-Mar-01 02:24:54, you wrote: Anyone have opinions on which DB abstraction layer is best for what situation? Is there an article somewhere that compares the various DB abstraction layers? I guess I am too suspicious too tell, but I can tell you a few advantages or features of

[PHP] first three characters

2001-03-18 Thread Rahul Bhide
Gurus, How do I extract the first n characters out of a word . I have this- $Word = attention I want - $Word_3 = att $Word_4 = atte $Word_5 = atten this is only extracting first three/four/five characters . What is the right function to use here ?? thx in advance. ~Rahul -- PHP

Re: [PHP] dynamically change a variable name

2001-03-18 Thread Mark Maggelet
On Sun, 18 Mar 2001 20:36:15 -0500, Gary ([EMAIL PROTECTED]) wrote: Is there a way to dynamically change a variable name? For example: I want to change the variable name $DWG to $DWG1 $DWG2 $DWG3 with a for loop. Is there a way to do this? you could try: for($i=1;$i=3;$i++){

RE: [PHP] first three characters

2001-03-18 Thread Jack Dempsey
?PHP $Word = "attention"; $Word_3 = substr("$Word",0,3); //$Word_3 is 'att' $Word_4 = substr("$Word",0,4); //Word_4 is 'atte' ? etc..you can use dynamic variables to extract the nth character from your word.. jack -Original Message- From: Rahul Hari Bhide [mailto:[EMAIL

RE: [PHP] first three characters

2001-03-18 Thread Ankur Verma
try using the function substr() $Word = attention $Word_3 = substr ($Word, 0,3) $Word_3 = substr ($Word, 0,4) and so on hope that helps regards Ankur Verma HCL technologies Noida India -Original Message- From: Rahul Hari Bhide [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001

Re: [PHP] Sessions and CHECKBOXES :(

2001-03-18 Thread Yasuo Ohgaki
Although, you ask not to refer to PHP manual, there is a function you probably would like to learn. (I guess you haven't read about array functions, right?) http://www.php.net/manual/en/function.array-merge.php This should be what you are looking for. (Don't over write, but merge arrays. I guess

[PHP] Seg Fault with fopen

2001-03-18 Thread Matt Friedman
Here's a function I'm trying to use to execute a php and then read the html. I've tried the actual hostname instead of localhost but that's not working either. It's causing a segmentation fault. I'm running linux apache php 4.0.4 Any thoughts? function get_web_page_desc($filename) { $uri =

[PHP] PHP and XSLT, anyone working with these?

2001-03-18 Thread Bryan Willett
I know that the XSLT functionality in PHP is experimental but is anyone doing any work with these? I've written some basic extensions to PHPLIB for XSLT and I am curious if anyone has some more advanced research they can share. The code that I have will return a dataset, format into XML, and

[PHP-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session php_midgard.h.in

2001-03-18 Thread Alexander Bokovoy
ab Sun Mar 18 23:04:56 2001 EDT Added files: /php4/ext/midgard php_midgard.h.in Modified files: /php4/ext/midgard config.m4 config.m4.session Log: Automatically generate correct #include for cases when module build using phpize

[PHP] PHP and XSLT, anyone working with these?

2001-03-18 Thread Bryan Willett
the correct link to see my PHP/XSLT code is: http://www.merchantempires.net/db_xsl.inc -- 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

[PHP] unable to fine /htdocs on my linux machine :(

2001-03-18 Thread Nilesh Parmar
Hi! I am trying to install php on my Redhat Linux 7.0 box and following all instructions correctly, but i am unable to locate the directory /htdocs in my machine I tried all tricks and trials but of no use .Can anyone tell me what to do now!! my httpd.conf file is in /etc/httpd/conf/

[PHP] values from text boxes

2001-03-18 Thread Dennis Gearon
do I have to cast values from text boxes into ints? If so, it's wierd, because I have taken the values from text inputs before and just put them into insert string statements for mysql. It turned them into ints just fine. I use the following code to MAKE a table of input boxes on the screen,

Re: [PHP] unable to fine /htdocs on my linux machine :(

2001-03-18 Thread David Robley
On Mon, 19 Mar 2001 05:53, Nilesh Parmar wrote: Hi! I am trying to install php on my Redhat Linux 7.0 box and following all instructions correctly, but i am unable to locate the directory /htdocs in my machine I tried all tricks and trials but of no use .Can anyone tell me what to do

Re: [PHP] Problems with multiple query

2001-03-18 Thread Luca Lazzeroni
Thanks; in fact I've tryed the second solution and it works for me; but I can't understand why the script stop working during the upgrade of system. The most strange thing is that, after a deeper investigation on the code, I've found the PHP engine does something like closing the connection after

[PHP] cf to php

2001-03-18 Thread chris herring
is there a php equivalent for this little tidbit from a friend's cf script? here it is: cfif NOT ISDEFINED("url.page")

[PHP-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-18 Thread Alexander Bokovoy
ab Sun Mar 18 23:37:01 2001 EDT Modified files: /php4/ext/midgard config.m4 config.m4.session Log: Oops. Substitution code fixed Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.14 php4/ext/midgard/config.m4:1.15 ---

RE: [PHP] cf to php

2001-03-18 Thread Jack Dempsey
What exactly does that do chris? If you're trying to check and see if there's a file on the server, then you could do something with readdir, is_file, etc...if you want to post what that actually tests for then i might be able to help more jack -Original Message- From: chris herring

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/midgard .cvsignore article.c attachment.c config.m4 config.m4.session midgard.c php_midgard.h snippet.c

2001-03-18 Thread Alexander Bokovoy
ab Sun Mar 18 23:52:04 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/midgard .cvsignore article.c attachment.c config.m4 config.m4.session midgard.c php_midgard.h snippet.c Log: Bringing fixed code

Re: [PHP] unable to fine /htdocs on my linux machine :(

2001-03-18 Thread Harshdeep S Jawanda
Hi, Nilesh Parmar wrote: i am unable to locate the directory /htdocs in my machine The default location for the htdocs directory is: apache-install-directory/htdocs. -- Regards, Harshdeep Singh Jawanda. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP-I18N] Encoding detection

2001-03-18 Thread Atanas Vassilev
Hello everyone, I'm new to this list and I guess this question might already have been asked but all my searches led me to nothing... I need a way to detect default browser encoding so that i can set a variable for language and present the whole site in different languages based on encoding. I

php-i18n Digest 19 Mar 2001 07:59:32 -0000 Issue 58

2001-03-18 Thread php-i18n-digest-help
php-i18n Digest 19 Mar 2001 07:59:32 - Issue 58 Topics (messages 139 through 139): Encoding detection 139 by: Atanas Vassilev Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post